Skip to content

[pre-commit.ci] pre-commit autoupdate#14704

Open
pre-commit-ci[bot] wants to merge 2 commits into
mainfrom
pre-commit-ci-update-config
Open

[pre-commit.ci] pre-commit autoupdate#14704
pre-commit-ci[bot] wants to merge 2 commits into
mainfrom
pre-commit-ci-update-config

Conversation

@pre-commit-ci

@pre-commit-ci pre-commit-ci Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

pre-commit-ci Bot and others added 2 commits July 13, 2026 21:53
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.20 → v0.15.21](astral-sh/ruff-pre-commit@v0.15.20...v0.15.21)
- [github.com/pre-commit/mirrors-mypy: v2.1.0 → v2.3.0](pre-commit/mirrors-mypy@v2.1.0...v2.3.0)
- tox_run.py: os.system is soft-deprecated, use subprocess.call
- test_monkeypatch.py: inspect.isclass is now typed as TypeIs[type],
  narrowing makes the post-context assert look unreachable
m.setattr(functools, "partial", 3)
assert not inspect.isclass(functools.partial)
assert inspect.isclass(functools.partial)
assert inspect.isclass(functools.partial) # type: ignore[unreachable]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a mypy false positive, we can actually reach this code. The test pass, but if you invert the condition it fails with:

AssertionError: assert not True where True = isclass(<class 'functools.partial'>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant