|
42 | 42 | from git.types import TBD, PathLike, Lit_config_levels, Commit_ish, Tree_ish, assert_never |
43 | 43 | from typing import (Any, BinaryIO, Callable, Dict, |
44 | 44 | Iterator, List, Mapping, Optional, Sequence, |
45 | | - TextIO, Tuple, Type, TypedDict, Union, |
| 45 | + TextIO, Tuple, Type, Union, |
46 | 46 | NamedTuple, cast, TYPE_CHECKING) |
47 | 47 |
|
48 | | -from git.types import ConfigLevels_Tup |
| 48 | +from git.types import ConfigLevels_Tup, TypedDict |
49 | 49 |
|
50 | 50 | if TYPE_CHECKING: |
51 | 51 | from git.util import IterableList |
@@ -984,11 +984,10 @@ class InfoDC(Dict[str, Union[str, int]]): |
984 | 984 | c = commits.get(sha) |
985 | 985 | if c is None: |
986 | 986 | 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}"), |
988 | 988 | 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) |
992 | 991 | commits[sha] = c |
993 | 992 | blames[-1][0] = c |
994 | 993 | # END if commit objects needs initial creation |
|
0 commit comments