Skip to content

[peewee] type peewee.Check#15962

Closed
Psycojoker wants to merge 1 commit into
python:mainfrom
Psycojoker:peewee-type-peewee-Check
Closed

[peewee] type peewee.Check#15962
Psycojoker wants to merge 1 commit into
python:mainfrom
Psycojoker:peewee-type-peewee-Check

Conversation

@Psycojoker

Copy link
Copy Markdown
Contributor

Hello,

Here is the reference for the Check function:

image

https://docs.peewee-orm.com/en/latest/peewee/api.html#Check

And the related source code:

image

Since both SQL and NodeList inherit from ColumnBase, it might make more sens to write the return type as ColumnBase, but I'm not sure if a more generic type is preferred over a more precise one?

Kind regards,

@github-actions

Copy link
Copy Markdown
Contributor

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

@Psycojoker

Copy link
Copy Markdown
Contributor Author

Closed in favor of #15911 (comment) (and the work is likely going to be upstream in peewee itself)

@Psycojoker Psycojoker closed this Jun 28, 2026
@Psycojoker Psycojoker deleted the peewee-type-peewee-Check branch June 28, 2026 13:56
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