summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
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