No more Tuple, List, Dict (#38797)
* No more Tuple, List, Dict * make fixup * More style fixes * Docstring fixes with regex replacement * Trigger tests * Redo fixes after rebase * Fix copies * [test all] * update * [test all] * update * [test all] * make style after rebase * Patch the hf_argparser test * Patch the hf_argparser test * style fixes * style fixes * style fixes * Fix docstrings in Cohere test * [test all] --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -31,7 +31,6 @@ import os.path
|
||||
import re
|
||||
import string
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
|
||||
from git import Repo
|
||||
|
||||
@@ -39,7 +38,7 @@ from git import Repo
|
||||
PATH_TO_REPO = Path(__file__).parent.parent.resolve()
|
||||
|
||||
|
||||
def get_new_python_files_between_commits(base_commit: str, commits: List[str]) -> List[str]:
|
||||
def get_new_python_files_between_commits(base_commit: str, commits: list[str]) -> list[str]:
|
||||
"""
|
||||
Get the list of added python files between a base commit and one or several commits.
|
||||
|
||||
@@ -64,7 +63,7 @@ def get_new_python_files_between_commits(base_commit: str, commits: List[str]) -
|
||||
return code_diff
|
||||
|
||||
|
||||
def get_new_python_files(diff_with_last_commit=False) -> List[str]:
|
||||
def get_new_python_files(diff_with_last_commit=False) -> list[str]:
|
||||
"""
|
||||
Return a list of python files that have been added between the current head and the main branch.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user