diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-06-18 11:28:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 11:28:33 +0800 |
commit | 6a0d131ece696f259e7ab42a064ceb10dabb1fcc (patch) | |
tree | fb07007006ec6af0dccbcd6a62abc4c6589dcfd3 /git/cmd.py | |
parent | b0f79c58ad919e90261d1e332df79a4ad0bc40de (diff) | |
parent | 18b6aa55309adfa8aa99bdaf9e8f80337befe74e (diff) | |
download | gitpython-6a0d131ece696f259e7ab42a064ceb10dabb1fcc.tar.gz |
Merge pull request #1271 from Yobmod/main
Add initial types to object, and fix CI
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -148,7 +148,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} @@ -460,7 +459,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 |