1 file changed
@@ -550,7 +550,7 @@ def __del__(self) -> None: | |||
| 550 | 550 | ) | |
| 551 | 551 | ||
| 552 | 552 | ||
| 553 | - def _warn_use_shell(extra_danger: bool) -> None: | ||
| 553 | + def _warn_use_shell(*, extra_danger: bool) -> None: | ||
| 554 | 554 | warnings.warn( | |
| 555 | 555 | _USE_SHELL_DANGER_MESSAGE if extra_danger else _USE_SHELL_DEFAULT_MESSAGE, | |
| 556 | 556 | DeprecationWarning, | |
@@ -566,12 +566,12 @@ class _GitMeta(type): | |||
| 566 | 566 | ||
| 567 | 567 | def __getattribute(cls, name: str) -> Any: | |
| 568 | 568 | if name == "USE_SHELL": | |
| 569 | - _warn_use_shell(False) | ||
| 569 | + _warn_use_shell(extra_danger=False) | ||
| 570 | 570 | return super().__getattribute__(name) | |
| 571 | 571 | ||
| 572 | 572 | def __setattr(cls, name: str, value: Any) -> Any: | |
| 573 | 573 | if name == "USE_SHELL": | |
| 574 | - _warn_use_shell(value) | ||
| 574 | + _warn_use_shell(extra_danger=value) | ||
| 575 | 575 | super().__setattr__(name, value) | |
| 576 | 576 | ||
| 577 | 577 | if not TYPE_CHECKING: | |
@@ -988,7 +988,7 @@ def __init__(self, working_dir: Union[None, PathLike] = None) -> None: | |||
| 988 | 988 | ||
| 989 | 989 | def __getattribute__(self, name: str) -> Any: | |
| 990 | 990 | if name == "USE_SHELL": | |
| 991 | - _warn_use_shell(False) | ||
| 991 | + _warn_use_shell(extra_danger=False) | ||
| 992 | 992 | return super().__getattribute__(name) | |
| 993 | 993 | ||
| 994 | 994 | def __getattr__(self, name: str) -> Any: | |
0 commit comments