File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -433,15 +433,15 @@ class Remote(LazyMixin, Iterable):
433
433
__slots__ = ("repo" , "name" , "_config_reader" )
434
434
_id_attribute_ = "name"
435
435
436
- def __init__ (self , repo , name ) :
436
+ def __init__ (self , repo : 'Repo' , name : str ) -> None :
437
437
"""Initialize a remote instance
438
438
439
439
:param repo: The repository we are a remote of
440
440
:param name: the name of the remote, i.e. 'origin'"""
441
441
self .repo = repo # type: 'Repo'
442
442
self .name = name
443
443
444
- def __getattr__ (self , attr ) :
444
+ def __getattr__ (self , attr : str ) -> Any :
445
445
"""Allows to call this instance like
446
446
remote.special( \\ *args, \\ *\\ *kwargs) to call git-remote special self.name"""
447
447
if attr == "_config_reader" :
@@ -481,7 +481,7 @@ def __ne__(self, other):
481
481
def __hash__ (self ):
482
482
return hash (self .name )
483
483
484
- def exists (self ):
484
+ def exists (self ) -> bool :
485
485
"""
486
486
:return: True if this is a valid, existing remote.
487
487
Valid remotes have an entry in the repository's configuration"""
Original file line number Diff line number Diff line change 2
2
[mypy]
3
3
4
4
# TODO: enable when we've fully annotated everything
5
- # disallow_untyped_defs = True
5
+ disallow_untyped_defs = True
6
6
7
7
# TODO: remove when 'gitdb' is fully annotated
8
8
[mypy-gitdb.*]
You can’t perform that action at this time.
0 commit comments