]> git.madduck.net Git - etc/vim.git/blobdiff - .vim/bundle/black/src/black/static/git-logo.png

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add '.vim/bundle/black/' from commit '2f3fa1f6d0cbc2a3f31c7440c422da173b068e7b'
[etc/vim.git] / .vim / bundle / black / src / black / static / git-logo.png
diff --git a/src/black/rusty.py b/src/black/rusty.py
deleted file mode 100644 (file)
index 822e3d7..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-"""An error-handling model influenced by that used by the Rust programming language
-
-See https://doc.rust-lang.org/book/ch09-00-error-handling.html.
-"""
-from typing import Generic, TypeVar, Union
-
-
-T = TypeVar("T")
-E = TypeVar("E", bound=Exception)
-
-
-class Ok(Generic[T]):
-    def __init__(self, value: T) -> None:
-        self._value = value
-
-    def ok(self) -> T:
-        return self._value
-
-
-class Err(Generic[E]):
-    def __init__(self, e: E) -> None:
-        self._e = e
-
-    def err(self) -> E:
-        return self._e
-
-
-Result = Union[Ok[T], Err[E]]