summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-06-17 17:22:31 +0100
committerYobmod <yobmod@gmail.com>2021-06-17 17:22:31 +0100
commit567c892322776756e8d0095e89f39b25b9b01bc2 (patch)
treeef8e51e84d3943d44c6fed31aa24d63d4b022e36 /git/cmd.py
parent90f0fb8f449b6d3e4f12c28d8699ee79a6763b80 (diff)
downloadgitpython-567c892322776756e8d0095e89f39b25b9b01bc2.tar.gz
rebase with dropped 3.5
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index d8b82352..d15b97ca 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -150,7 +150,6 @@ def dashify(string: str) -> str:
def slots_to_dict(self, exclude: Sequence[str] = ()) -> Dict[str, Any]:
- # annotate self.__slots__ as Tuple[str, ...] once 3.5 dropped
return {s: getattr(self, s) for s in self.__slots__ if s not in exclude}
@@ -462,7 +461,7 @@ class Git(LazyMixin):
If not all data is read to the end of the objects's lifetime, we read the
rest to assure the underlying stream continues to work"""
- __slots__ = ('_stream', '_nbr', '_size')
+ __slots__: Tuple[str, ...] = ('_stream', '_nbr', '_size')
def __init__(self, size: int, stream: IO[bytes]) -> None:
self._stream = stream