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

Commite6f340c

Browse files
committed
Rmv runtime_checkable < py3.8
1 parentdeafa6a commite6f340c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎git/objects/submodule/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ def remove(self, module: bool = True, force: bool = False,
927927
importgc
928928
gc.collect()
929929
try:
930-
rmtree(wtd)# type: ignore ##str()?
930+
rmtree(str(wtd))
931931
exceptExceptionasex:
932932
ifHIDE_WINDOWS_KNOWN_ERRORS:
933933
raiseSkipTest("FIXME: fails with: PermissionError\n {}".format(ex))fromex

‎git/types.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class HSH_TD(TypedDict):
8080
files:Dict[PathLike,Files_TD]
8181

8282

83-
@runtime_checkable
83+
#@runtime_checkable
8484
classRepoLike(Protocol):
8585
"""Protocol class to allow structural type-checking of Repo
8686
e.g. when cannot import due to circular imports"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp