From f97d37881d50da8f9702681bc1928a8d44119e88 Mon Sep 17 00:00:00 2001 From: yobmod Date: Mon, 3 May 2021 17:18:11 +0100 Subject: change flags type to int --- git/remote.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'git') 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 """ -- cgit v1.2.1