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

Commit9400246

Browse files
committed
Fix IndexFile forwardref
1 parent16f0607 commit9400246

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

‎git/objects/submodule/base.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
fromunittestimportSkipTest
88
importuuid
99

10-
fromgitimportIndexFile
11-
1210
importgit
1311
fromgit.cmdimportGit
1412
fromgit.compatimport (
@@ -58,6 +56,7 @@
5856

5957
ifTYPE_CHECKING:
6058
fromgit.repoimportRepo
59+
fromgit.indeximportIndexFile
6160

6261

6362
# -----------------------------------------------------------------------------
@@ -1012,7 +1011,7 @@ def set_parent_commit(self, commit: Union[Commit_ish, None], check: bool = True)
10121011
returnself
10131012

10141013
@unbare_repo
1015-
defconfig_writer(self,index:Union[IndexFile,None]=None,write:bool=True)->SectionConstraint:
1014+
defconfig_writer(self,index:Union['IndexFile',None]=None,write:bool=True)->SectionConstraint:
10161015
""":return: a config writer instance allowing you to read and write the data
10171016
belonging to this submodule into the .gitmodules file.
10181017

‎git/types.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636

3737
Lit_config_levels=Literal['system','global','user','repository']
3838

39-
T=TypeVar('T',bound=Literal['system','global','user','repository'],covariant=True)
40-
4139

4240
classConfigLevels_NT(NamedTuple):
4341
"""NamedTuple of allowed CONFIG_LEVELS"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp