Skip to content

Commit

Permalink
ci: [pre-commit.ci] autoupdate (#295)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- https://github.com/charliermarsh/ruff-pre-commithttps://github.com/astral-sh/ruff-pre-commit
- [github.com/astral-sh/ruff-pre-commit: v0.0.263 →
v0.0.276](astral-sh/ruff-pre-commit@v0.0.263...v0.0.276)
- [github.com/pre-commit/mirrors-mypy: v1.2.0 →
v1.4.1](pre-commit/mirrors-mypy@v1.2.0...v1.4.1)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nathan Clack <nclack@chanzuckerberg.com>
Co-authored-by: Nathan Clack <nclack@gmail.com>
  • Loading branch information
3 people authored Aug 3, 2023
1 parent 6913972 commit 789a127
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ repos:
hooks:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.263
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.276
hooks:
- id: ruff

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
rev: v1.4.1
hooks:
- id: mypy
additional_dependencies:
Expand Down
4 changes: 3 additions & 1 deletion src/npe2/_dynamic_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ def __call__(self, func: T, **kwargs) -> T:
...

@overload
def __call__(self, func: Literal[None] = None, **kwargs) -> Callable[[T], T]:
def __call__(
self, func: Optional[Literal[None]] = None, **kwargs
) -> Callable[[T], T]:
...

def __call__(
Expand Down
2 changes: 1 addition & 1 deletion src/npe2/manifest/contributions/_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ def exec(self, *, kwargs):
@wraps(callable_)
def npe1_compat(paths, *, stack):
path = v2_to_v1(paths, stack)
return callable_(path) # type: ignore
return callable_(path)

return npe1_compat

0 comments on commit 789a127

Please sign in to comment.