MCPcopy Index your code
hub / github.com/python/mypy / get_nth_commit

Function get_nth_commit

misc/incremental_checker.py:116–118  ·  view source on GitHub ↗
(repo_folder_path: str, n: int)

Source from the content-addressed store, hash-verified

114
115
116def get_nth_commit(repo_folder_path: str, n: int) -> tuple[str, str]:
117 print(f"Fetching last {n} commits (or all, if there are fewer commits than n)")
118 return get_commits(repo_folder_path, f"-{n}")[0]
119
120
121def run_mypy(

Callers 1

test_repoFunction · 0.85

Calls 2

printFunction · 0.85
get_commitsFunction · 0.85

Tested by 1

test_repoFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…