Skip to content

Commit

Permalink
ci(pre-commit.ci): autoupdate (#116)
Browse files Browse the repository at this point in the history
* ci(pre-commit.ci): autoupdate

updates:
- [github.com/abravalheri/validate-pyproject: v0.16 → v0.19](abravalheri/validate-pyproject@v0.16...v0.19)
- [github.com/crate-ci/typos: v1.21.0 → typos-dict-v0.11.27](crate-ci/typos@v1.21.0...typos-dict-v0.11.27)
- [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.6.3](astral-sh/ruff-pre-commit@v0.4.3...v0.6.3)
- [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.11.2](pre-commit/mirrors-mypy@v1.10.0...v1.11.2)

* lint

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Talley Lambert <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and tlambert03 authored Sep 11, 2024
1 parent d705e87 commit b05cecd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ ci:

repos:
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
rev: v0.19
hooks:
- id: validate-pyproject

- repo: https://github.com/crate-ci/typos
rev: v1.21.0
rev: v1.24.5
hooks:
- id: typos

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.6.4
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.11.2
hooks:
- id: mypy
files: "^src/"
6 changes: 3 additions & 3 deletions tests/test_type_resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_resolve_type_hints():
assert hints["c"] == Optional[float]

hints = resolve_type_hints(requires_unknown, localns={"Unknown": int})
assert hints["param"] == int
assert hints["param"] is int


def test_resolve_single_type_hints():
Expand Down Expand Up @@ -65,7 +65,7 @@ def test_type_resolved_signature():
type_resolved_signature(requires_unknown, raise_unresolved_optional_args=False)

sig = type_resolved_signature(requires_unknown, localns={"Unknown": int})
assert sig.parameters["param"].annotation == int
assert sig.parameters["param"].annotation is int


def test_partial_resolution() -> None:
Expand Down Expand Up @@ -162,4 +162,4 @@ def myfun(a: "unknown", b: "GlobalThing"): # type: ignore # noqa
raise_unresolved_required_args=False,
)
assert _a.parameters["a"].annotation == "unknown"
assert _a.parameters["b"].annotation == int
assert _a.parameters["b"].annotation is int

0 comments on commit b05cecd

Please sign in to comment.