Skip to content

Commit ad417ba

Browse files
committed
Test Dataclass in repo.base.blame() 6
1 parent bc9bcf5 commit ad417ba

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

git/repo/base.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
from git.types import TBD, PathLike, Lit_config_levels, Commit_ish, Tree_ish, assert_never
4343
from typing import (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-
from git.types import ConfigLevels_Tup
48+
from git.types import ConfigLevels_Tup, TypedDict
4949

5050
if TYPE_CHECKING:
5151
from git.util import IterableList
@@ -984,11 +984,10 @@ class InfoDC(Dict[str, Union[str, int]]):
984984
c = commits.get(sha)
985985
if c is None:
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)