lint: switch Black with `ruff-format` by Borda · Pull Request #1865 · gitpython-developers/GitPython
if mode in warn: _logger.critical(err) else: raise ImportError(err) else: err = ( dedent( """\ err = dedent( """\ %s environment variable has been set but it has been set with an invalid value.
Use only the following values: - %s: for no message or exception - %s: for a warning message (logging level CRITICAL, displayed by default) - %s: for a raised exception """ ) % ( cls._refresh_env_var, "|".join(quiet), "|".join(warn), "|".join(error), ) ) % ( cls._refresh_env_var, "|".join(quiet), "|".join(warn), "|".join(error), ) raise ImportError(err)
@overload @classmethod def polish_url(cls, url: str, is_cygwin: Literal[False] = ...) -> str: ... def polish_url(cls, url: str, is_cygwin: Literal[False] = ...) -> str: ...
@overload @classmethod def polish_url(cls, url: str, is_cygwin: Union[None, bool] = None) -> str: ... def polish_url(cls, url: str, is_cygwin: Union[None, bool] = None) -> str: ...
@classmethod def polish_url(cls, url: str, is_cygwin: Union[None, bool] = None) -> PathLike:
@overload def execute(
@overload def execute(
@overload def execute(
@overload def execute(
def execute( self,
@overload def _call_process(self, method: str, *args: None, **kwargs: None) -> str: ... # If no args were given, execute the call with all defaults. def _call_process( self, method: str, *args: None, **kwargs: None ) -> str: ... # If no args were given, execute the call with all defaults.
@overload def _call_process(
@overload def _call_process( self, method: str, *args: Any, **kwargs: Any ) -> Union[str, bytes, Tuple[int, Union[str, bytes], str], "Git.AutoInterrupt"]: ... ) -> Union[str, bytes, Tuple[int, Union[str, bytes], str], "Git.AutoInterrupt"]: ...
def _call_process( self, method: str, *args: Any, **kwargs: Any