Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some missing or incorrect types to peewee #12251

Merged
merged 11 commits into from
Jul 21, 2024

Conversation

dhorkel
Copy link
Contributor

@dhorkel dhorkel commented Jul 1, 2024

I discovered some return types in for peewee were incorrect (reported here: #12250). I decided to add some more types where it seemed straightforward.

This is my first attempt to contribute so apologies for any mistakes :)

This comment has been minimized.

This comment has been minimized.

@JelleZijlstra
Copy link
Member

You may need to add some type ignores to fix the CI errors:

stubs/peewee/peewee.pyi:153: error: Return type "Expression | bool" of "__eq__" incompatible with return type "bool" in supertype "object"  [override]
stubs/peewee/peewee.pyi:154: error: Return type "Expression | bool" of "__ne__" incompatible with return type "bool" in supertype "object"  [override]
stubs/peewee/peewee.pyi:256: error: Return type "Expression" of "__eq__" incompatible with return type "bool" in supertype "object"  [override]
stubs/peewee/peewee.pyi:257: error: Return type "Expression" of "__ne__" incompatible with return type "bool" in supertype "object"  [override]
stubs/peewee/peewee.pyi:1477: error: Return type "bool" of "__eq__" incompatible with return type "Expression" in supertype "ColumnBase"  [override]
stubs/peewee/peewee.pyi:1478: error: Return type "bool" of "__ne__" incompatible with return type "Expression" in supertype "ColumnBase"  [override]

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit aae471f into python:main Jul 21, 2024
48 checks passed
max-muoto pushed a commit to max-muoto/typeshed that referenced this pull request Jul 23, 2024
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.

None yet

2 participants