diff options
author | Yobmod <yobmod@gmail.com> | 2021-06-17 17:22:31 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-06-17 17:22:31 +0100 |
commit | 567c892322776756e8d0095e89f39b25b9b01bc2 (patch) | |
tree | ef8e51e84d3943d44c6fed31aa24d63d4b022e36 /git/cmd.py | |
parent | 90f0fb8f449b6d3e4f12c28d8699ee79a6763b80 (diff) | |
download | gitpython-567c892322776756e8d0095e89f39b25b9b01bc2.tar.gz |
rebase with dropped 3.5
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |