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:
@@ -42,7 +42,7 @@ import operator as op
|
||||
import os
|
||||
import re
|
||||
from pathlib import Path
|
||||
from typing import Any, Optional, Tuple, Union
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
from check_repo import ignore_undocumented
|
||||
from git import Repo
|
||||
@@ -788,7 +788,7 @@ def find_source_file(obj: Any) -> Path:
|
||||
return obj_file.with_suffix(".py")
|
||||
|
||||
|
||||
def match_docstring_with_signature(obj: Any) -> Optional[Tuple[str, str]]:
|
||||
def match_docstring_with_signature(obj: Any) -> Optional[tuple[str, str]]:
|
||||
"""
|
||||
Matches the docstring of an object with its signature.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user