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

Commitc0ab23e

Browse files
committed
Rmv submodule types2
1 parent6aebb73 commitc0ab23e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎git/diff.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424

2525
fromsubprocessimportPopen
2626

27-
Lit_change_type=Literal['A','D','M','R','T']
27+
Lit_change_type=Literal['A','C','D','M','R','T']
2828

2929

3030
defis_change_type(inp:str)->TypeGuard[Lit_change_type]:
31-
returninpin ('A','D','M','R','T')
31+
returninpin ('A','D','C','M','R','T')
3232

3333
# ------------------------------------------------------------------------
3434

‎git/objects/submodule/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def add(cls, repo: 'Repo', name: str, path: PathLike, url: Union[str, None] = No
391391
ifsm.exists():
392392
# reretrieve submodule from tree
393393
try:
394-
sm=repo.head.commit.tree[path]
394+
sm=repo.head.commit.tree[path]# type: ignore
395395
sm._name=name
396396
returnsm
397397
exceptKeyError:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp