Skip to content

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

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

[pre-commit.ci] pre-commit autoupdate#14704
pre-commit-ci[bot] wants to merge 1 commit 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

Comment thread testing/test_monkeypatch.py Outdated
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'>)

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.20 → v0.15.22](astral-sh/ruff-pre-commit@v0.15.20...v0.15.22)
- [github.com/woodruffw/zizmor-pre-commit: v1.26.1 → v1.27.0](zizmorcore/zizmor-pre-commit@v1.26.1...v1.27.0)
- [github.com/codespell-project/codespell: v2.4.2 → v2.4.3](codespell-project/codespell@v2.4.2...v2.4.3)
- [github.com/pre-commit/mirrors-mypy: v2.1.0 → v2.3.0](pre-commit/mirrors-mypy@v2.1.0...v2.3.0)
@pre-commit-ci
pre-commit-ci Bot force-pushed the pre-commit-ci-update-config branch from 85f8a70 to 21416b0 Compare July 20, 2026 21:22
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