Skip to content

Add initial types to base and fun #1191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
change namedtuple for old formatting
  • Loading branch information
Yobmod committed Mar 4, 2021
commit f9bf1b360e575a17a1662bd26aef93383ec733a0
12 changes: 9 additions & 3 deletions git/repo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from git.remote import Remote, add_progress, to_progress_instance
from git.util import Actor, IterableList, finalize_process, decygpath, hex_to_bin, expand_path
import os.path as osp
# from collections import namedtuple

from .fun import rev_parse, is_git_dir, find_submodule_git_dir, touch, find_worktree_git_dir
import gc
Expand All @@ -49,14 +50,19 @@


# --------------------------------------------------------------------------


BlameEntry = NamedTuple('BlameEntry', [
('commit', Dict[str, TBD]),
('linenos', range),
('orig_path', Optional[str]),
('orig_linenos', range)]
)
"""
class BlameEntry(NamedTuple):
commit: Dict[str, TBD] # Any == 'Commit' type?
linenos: range
orig_path: Optional[str]
orig_linenos: range

"""

log = logging.getLogger(__name__)

Expand Down