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

Commitf34a39f

Browse files
committed
Test new union syntax (Pep604)
1 parent9de7310 commitf34a39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/repo/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ def active_branch(self) -> Head:
795795
# reveal_type(self.head.reference) # => Reference
796796
returnself.head.reference
797797

798-
defblame_incremental(self,rev:Union[str,HEAD],file:str,**kwargs:Any)->Iterator['BlameEntry']:
798+
defblame_incremental(self,rev:str|HEAD,file:str,**kwargs:Any)->Iterator['BlameEntry']:
799799
"""Iterator for blame information for the given file at the given revision.
800800
801801
Unlike .blame(), this does not return the actual file's contents, only

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp