Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita06f1fc

Browse files
committed
Remove commented-out is_config_level function
And the commented-out imports that had been solely to support it.
1 parent012d710 commita06f1fc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

‎git/types.py‎

Lines changed: 0 additions & 9 deletions
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
ifTYPE_CHECKING:
4237
fromgit.repoimportRepo
4338
fromgit.objectsimportCommit,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)

[8]ページ先頭

©2009-2026 Movatter.jp