typeshed
typeshed copied to clipboard
Incorrect return types for peewee
The types for in main/stubs/peewee/peewee.pyi are incorrect for _HashableSource and ColumnBase, specifically for the functions __eq__ and __ne__ the return types are set as bool when they should be peewee's Expression class for ColumnBase and for Expression | bool for _HashableSource (or left as Incomplete) as seen here in peewee's repo: https://github.com/coleifer/peewee/blob/2b2e876edf686f3f4ddf5f36df9b978f42504082/peewee.py#L1244
It appears these types were incorrectly added in this commit: https://github.com/python/typeshed/commit/11b842cd80e3915f20113076fbc8a147ac1a20af