summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-06-18 11:28:33 +0800
committerGitHub <noreply@github.com>2021-06-18 11:28:33 +0800
commit6a0d131ece696f259e7ab42a064ceb10dabb1fcc (patch)
treefb07007006ec6af0dccbcd6a62abc4c6589dcfd3 /git/cmd.py
parentb0f79c58ad919e90261d1e332df79a4ad0bc40de (diff)
parent18b6aa55309adfa8aa99bdaf9e8f80337befe74e (diff)
downloadgitpython-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.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 4f58b314..e078e4a1 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -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