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

Commitad417ba

Browse files
committed
Test Dataclass in repo.base.blame() 6
1 parentbc9bcf5 commitad417ba

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

‎git/repo/base.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
fromgit.typesimportTBD,PathLike,Lit_config_levels,Commit_ish,Tree_ish,assert_never
4343
fromtypingimport (Any,BinaryIO,Callable,Dict,
4444
Iterator,List,Mapping,Optional,Sequence,
45-
TextIO,Tuple,Type,TypedDict,Union,
45+
TextIO,Tuple,Type,Union,
4646
NamedTuple,cast,TYPE_CHECKING)
4747

48-
fromgit.typesimportConfigLevels_Tup
48+
fromgit.typesimportConfigLevels_Tup,TypedDict
4949

5050
ifTYPE_CHECKING:
5151
fromgit.utilimportIterableList
@@ -984,11 +984,10 @@ class InfoDC(Dict[str, Union[str, int]]):
984984
c=commits.get(sha)
985985
ifcisNone:
986986
c=Commit(self,hex_to_bin(sha),
987-
author=Actor._from_string(info.author+' '+info.author_email),
987+
author=Actor._from_string(f"{info.author}{info.author_email}"),
988988
authored_date=info.author_date,
989-
committer=Actor._from_string(
990-
info.committer+' '+info.committer_email),
991-
committed_date=info.committer_date)
989+
committer=Actor._from_string(f"{info.committer}{info.committer_email}"),
990+
committed_date=info.committer_date)
992991
commits[sha]=c
993992
blames[-1][0]=c
994993
# END if commit objects needs initial creation

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp