summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authoryobmod <yobmod@gmail.com>2021-05-03 17:18:11 +0100
committeryobmod <yobmod@gmail.com>2021-05-03 17:18:11 +0100
commitf97d37881d50da8f9702681bc1928a8d44119e88 (patch)
treedaabcabf1e007c399361082d253454431047af5b /git/remote.py
parente37ebaa5407408ee73479a12ada0c4a75e602092 (diff)
downloadgitpython-f97d37881d50da8f9702681bc1928a8d44119e88.tar.gz
change flags type to int
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/git/remote.py b/git/remote.py
index 5b6b29a7..d73da7d4 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -36,7 +36,7 @@ from .refs import (
# typing-------------------------------------------------------
-from typing import Any, Callable, Optional, Set, TYPE_CHECKING, Union
+from typing import Any, Callable, Optional, TYPE_CHECKING, Union
from git.types import PathLike, Literal
@@ -115,7 +115,7 @@ class PushInfo(object):
'=': UP_TO_DATE,
'!': ERROR}
- def __init__(self, flags: Set[int], local_ref: SymbolicReference, remote_ref_string: str, remote,
+ def __init__(self, flags: int, local_ref: SymbolicReference, remote_ref_string: str, remote,
old_commit: Optional[bytes] = None, summary: str = '') -> None:
""" Initialize a new instance """
self.flags = flags
@@ -255,8 +255,8 @@ class FetchInfo(object):
return True
- def __init__(self, ref: SymbolicReference, flags: Set[int], note: str = '', old_commit: Optional['Commit'] = None,
- remote_ref_path: Optional[PathLike] = None):
+ def __init__(self, ref: SymbolicReference, flags: int, note: str = '', old_commit: Optional['Commit'] = None,
+ remote_ref_path: Optional[PathLike] = None) -> None:
"""
Initialize a new instance
"""