Skip to content

[peewee] Annotate ColumnBase.__invert__ - #16650

Open
jakkdl wants to merge 1 commit into
python:mainfrom
jakkdl:peewee-invert
Open

jakkdl wants to merge 1 commit into
python:mainfrom
jakkdl:peewee-invert

Conversation

@jakkdl

@jakkdl jakkdl commented Oct 29, 2026

Copy link
Copy Markdown

ColumnBase.__invert__ is unannotated, so ~ on a field or expression is untyped.

Annotate it as returning ColumnBase (the precise Negated conflicts with BitwiseMixin.__invert__ in BitField), and drop DQ.__invert__'s unneeded type: ignore[override].

Upstream: https://github.com/coleifer/peewee/blob/4.5.3/peewee.py#L1269-L1270

🤖 Generated with Claude Code (Claude Opus 5.5)

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
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