| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4e9a2f2 commit c58be4c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,9 +48,6 @@ | |||
| 48 | 48 | ||
| 49 | 49 | TraversedTreeTup = Union[Tuple[Union["Tree", None], IndexObjUnion, Tuple["Submodule", "Submodule"]]] | |
| 50 | 50 | ||
| 51 | - # def is_tree_cache(inp: Tuple[bytes, int, str]) -> TypeGuard[TreeCacheTup]: | ||
| 52 | - # return isinstance(inp[0], bytes) and isinstance(inp[1], int) and isinstance([inp], str) | ||
| 53 | - | ||
| 54 | 51 | # -------------------------------------------------------- | |
| 55 | 52 | ||
| 56 | 53 | cmp: Callable[[str, str], int] = lambda a, b: (a > b) - (a < b) | |
@@ -124,7 +121,6 @@ def add(self, sha: bytes, mode: int, name: str, force: bool = False) -> "TreeMod | |||
| 124 | 121 | index = self._index_by_name(name) | |
| 125 | 122 | ||
| 126 | 123 | item = (sha, mode, name) | |
| 127 | - # assert is_tree_cache(item) | ||
| 128 | 124 | ||
| 129 | 125 | if index == -1: | |
| 130 | 126 | self._cache.append(item) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,6 @@ | |||
| 36 | 36 | Any, | |
| 37 | 37 | Callable, | |
| 38 | 38 | Deque, | |
| 39 | - # Generic, | ||
| 40 | 39 | Iterator, | |
| 41 | 40 | NamedTuple, | |
| 42 | 41 | Sequence, | |
@@ -49,7 +48,7 @@ | |||
| 49 | 48 | overload, | |
| 50 | 49 | ) | |
| 51 | 50 | ||
| 52 | - from git.types import Has_id_attribute, Literal # , _T | ||
| 51 | + from git.types import Has_id_attribute, Literal | ||
| 53 | 52 | ||
| 54 | 53 | if TYPE_CHECKING: | |
| 55 | 54 | from io import BytesIO, StringIO | |
@@ -63,7 +62,6 @@ | |||
| 63 | 62 | from .tag import TagObject | |
| 64 | 63 | from .tree import TraversedTreeTup, Tree | |
| 65 | 64 | else: | |
| 66 | - # Protocol = Generic[_T] # Needed for typing bug #572? | ||
| 67 | 65 | Protocol = ABC | |
| 68 | 66 | ||
| 69 | 67 | def runtime_checkable(f): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments