|
36 | 36 |
|
37 | 37 | # typing ------------------------------------------------------ |
38 | 38 |
|
39 | | -from git.types import ConfigLevels_NT, TBD, PathLike, Lit_config_levels, Commit_ish, Tree_ish |
| 39 | +from git.types import TBD, PathLike, Lit_config_levels, Commit_ish, Tree_ish |
40 | 40 | from typing import (Any, BinaryIO, Callable, Dict, |
41 | 41 | Iterator, List, Mapping, Optional, Sequence, |
42 | 42 | TextIO, Tuple, Type, Union, |
|
58 | 58 |
|
59 | 59 |
|
60 | 60 | class BlameEntry(NamedTuple): |
61 | | - commit: Dict[str, TBD] |
| 61 | + commit: Dict[str, 'Commit'] |
62 | 62 | linenos: range |
63 | 63 | orig_path: Optional[str] |
64 | 64 | orig_linenos: range |
@@ -96,7 +96,7 @@ class Repo(object): |
96 | 96 |
|
97 | 97 | # invariants |
98 | 98 | # represents the configuration level of a configuration file |
99 | | - config_level: ConfigLevels_Tup = ConfigLevels_NT("system", "user", "global", "repository") |
| 99 | + config_level: ConfigLevels_Tup = ("system", "user", "global", "repository") |
100 | 100 |
|
101 | 101 | # Subclass configuration |
102 | 102 | # Subclasses may easily bring in their own custom types by placing a constructor or type here |
@@ -802,7 +802,7 @@ def blame_incremental(self, rev: TBD, file: TBD, **kwargs: Any) -> Optional[Iter |
802 | 802 | should get a continuous range spanning all line numbers in the file. |
803 | 803 | """ |
804 | 804 | data = self.git.blame(rev, '--', file, p=True, incremental=True, stdout_as_string=False, **kwargs) |
805 | | - commits = {} # type: Dict[str, TBD] |
| 805 | + commits: Dict[str, Commit] = {} |
806 | 806 |
|
807 | 807 | stream = (line for line in data.split(b'\n') if line) |
808 | 808 | while True: |
|
0 commit comments