Skip to content

Commit a06f1fc

Browse files
committed
Remove commented-out is_config_level function
And the commented-out imports that had been solely to support it.
1 parent 012d710 commit a06f1fc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

git/types.py

-9
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
runtime_checkable,
3434
)
3535

36-
# if sys.version_info >= (3, 10):
37-
# from typing import TypeGuard # noqa: F401
38-
# else:
39-
# from typing_extensions import TypeGuard # noqa: F401
40-
4136
if TYPE_CHECKING:
4237
from git.repo import Repo
4338
from git.objects import Commit, Tree, TagObject, Blob
@@ -117,10 +112,6 @@
117112
ConfigLevels_Tup = Tuple[Literal["system"], Literal["user"], Literal["global"], Literal["repository"]]
118113
"""Static type of a tuple of the four strings representing configuration levels."""
119114

120-
# def is_config_level(inp: str) -> TypeGuard[Lit_config_levels]:
121-
# # return inp in get_args(Lit_config_level) # only py >= 3.8
122-
# return inp in ("system", "user", "global", "repository")
123-
124115
# Progress parameter type alias -----------------------------------------
125116

126117
CallableProgress = Optional[Callable[[int, Union[str, float], Union[str, float, None], str], None]]

0 commit comments

Comments
 (0)