Skip to content

Commit 7a9eedb

Browse files
committed
Add types to Remote. _asser_refspec() _clear_cache() _config_section_name() _set_cache()
1 parent 6a2f5d0 commit 7a9eedb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

git/remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ def stdout_handler(line):
766766

767767
return output
768768

769-
def _assert_refspec(self):
769+
def _assert_refspec(self) -> None:
770770
"""Turns out we can't deal with remotes if the refspec is missing"""
771771
config = self.config_reader
772772
unset = 'placeholder'
@@ -880,7 +880,7 @@ def config_reader(self):
880880
Hence you may simple type config.get("pushurl") to obtain the information"""
881881
return self._config_reader
882882

883-
def _clear_cache(self):
883+
def _clear_cache(self) -> None:
884884
try:
885885
del(self._config_reader)
886886
except AttributeError:

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[mypy]
33

44
# TODO: enable when we've fully annotated everything
5-
disallow_untyped_defs = True
5+
# disallow_untyped_defs = True
66

77
# TODO: remove when 'gitdb' is fully annotated
88
[mypy-gitdb.*]

0 commit comments

Comments
 (0)