summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-08-02 22:54:31 +0100
committerYobmod <yobmod@gmail.com>2021-08-02 22:54:31 +0100
commitad417ba77c98a39c2d5b3b3a74eb0a1ca17f0ccc (patch)
tree4add89366dc61b63ad91e177886066138fac7276
parentbc9bcf51ef68385895d8cdbc76098d6b493cd1b6 (diff)
downloadgitpython-ad417ba77c98a39c2d5b3b3a74eb0a1ca17f0ccc.tar.gz
Test Dataclass in repo.base.blame() 6
-rw-r--r--git/repo/base.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index a0aee322..54409b6a 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -42,10 +42,10 @@ import gitdb
from git.types import TBD, PathLike, Lit_config_levels, Commit_ish, Tree_ish, assert_never
from typing import (Any, BinaryIO, Callable, Dict,
Iterator, List, Mapping, Optional, Sequence,
- TextIO, Tuple, Type, TypedDict, Union,
+ TextIO, Tuple, Type, Union,
NamedTuple, cast, TYPE_CHECKING)
-from git.types import ConfigLevels_Tup
+from git.types import ConfigLevels_Tup, TypedDict
if TYPE_CHECKING:
from git.util import IterableList
@@ -984,11 +984,10 @@ class Repo(object):
c = commits.get(sha)
if c is None:
c = Commit(self, hex_to_bin(sha),
- author=Actor._from_string(info.author + ' ' + info.author_email),
+ author=Actor._from_string(f"{info.author} {info.author_email}"),
authored_date=info.author_date,
- committer=Actor._from_string(
- info.committer + ' ' + info.committer_email),
- committed_date=info.committer_date)
+ committer=Actor._from_string(f"{info.committer} {info.committer_email}"),
+ committed_date=info.committer_date)
commits[sha] = c
blames[-1][0] = c
# END if commit objects needs initial creation