◐ Shell
clean mode source ↗

Fix Git.{AutoInterrupt,CatFileContentStream} static typing by EliahKagan · Pull Request #2039 · gitpython-developers/GitPython

Expand Up @@ -60,6 +60,11 @@ overload, )
if sys.version_info >= (3, 10): from typing import TypeAlias else: from typing_extensions import TypeAlias
from git.types import Literal, PathLike, TBD
if TYPE_CHECKING: Expand Down Expand Up @@ -952,9 +957,9 @@ def check_unsafe_options(cls, options: List[str], unsafe_options: List[str]) -> f"{unsafe_option} is not allowed, use `allow_unsafe_options=True` to allow it." )
AutoInterrupt = _AutoInterrupt AutoInterrupt: TypeAlias = _AutoInterrupt
CatFileContentStream = _CatFileContentStream CatFileContentStream: TypeAlias = _CatFileContentStream
def __init__(self, working_dir: Union[None, PathLike] = None) -> None: """Initialize this instance with: Expand Down