Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 12, 2024
1 parent 46f421e commit 91cebba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/setuptools_scm/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def _check_tag_regex(value: str | Pattern[str] | None) -> Pattern[str]:
class ParseFunction(Protocol):
def __call__(
self, root: _t.PathT, *, config: Configuration
) -> _t.SCMVERSION | None:
...
) -> _t.SCMVERSION | None: ...


def _check_absolute_root(root: _t.PathT, relative_to: _t.PathT | None) -> str:
Expand Down
6 changes: 2 additions & 4 deletions src/setuptools_scm/_entrypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ def _call_version_scheme(
entrypoint: str,
given_value: _t.VERSION_SCHEMES,
default: str,
) -> str:
...
) -> str: ...


@overload
Expand All @@ -122,8 +121,7 @@ def _call_version_scheme(
entrypoint: str,
given_value: _t.VERSION_SCHEMES,
default: None,
) -> str | None:
...
) -> str | None: ...


def _call_version_scheme(
Expand Down
6 changes: 2 additions & 4 deletions src/setuptools_scm/_run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,15 @@ def parse_success(
parse: Callable[[str], PARSE_RESULT],
default: None = None,
error_msg: str | None = None,
) -> PARSE_RESULT | None:
...
) -> PARSE_RESULT | None: ...

@overload
def parse_success(
self,
parse: Callable[[str], PARSE_RESULT],
default: T,
error_msg: str | None = None,
) -> PARSE_RESULT | T:
...
) -> PARSE_RESULT | T: ...

def parse_success(
self,
Expand Down

0 comments on commit 91cebba

Please sign in to comment.