Skip to content

Commit

Permalink
stubber: Update type hint for 'ext' parameter to Optional[str]
Browse files Browse the repository at this point in the history
Signed-off-by: Jos Verlinde <Jos.Verlinde@microsoft.com>
  • Loading branch information
Josverl committed Jan 28, 2025
1 parent 6782763 commit 184b997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stubber/codemod/enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def upackage_equal(src: str, target: str) -> Tuple[bool, int]:
def source_target_candidates(
source: Path,
target: Path,
ext: str | None = None,
ext: Optional[str] = None,
) -> Generator[MergeMatch, None, None]:
"""
Given a target and source path, return a list of tuples of `(target, source, package name)` that are candidates for merging.
Expand Down Expand Up @@ -284,7 +284,7 @@ def enrich_folder(
write_back: bool = False,
require_docstub: bool = False,
params_only: bool = False,
ext: str | None = None,
ext: Optional[str] = None,
# package_name: str = "",
) -> int:
"""\
Expand Down

0 comments on commit 184b997

Please sign in to comment.