| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Sorry, something went wrong.
|
Closed in favor of #15911 (comment) (and the work is likely going to be upstream in peewee itself) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Hello,
Peewee comes with the concept of both a Database object a DatabaseProxy which is a database that doesn't require a connection to be opened immediately: https://docs.peewee-orm.com/en/latest/peewee/api.html#DatabaseProxy
Therefore, I've create a combine type for both and then typed all arguments to method with this new type:
Here are the reference from peewee's documentation:
https://docs.peewee-orm.com/en/latest/peewee/api.html#BaseQuery.execute
https://docs.peewee-orm.com/en/latest/peewee/api.html#BaseQuery.iterator
https://docs.peewee-orm.com/en/latest/peewee/api.html#SelectBase
https://docs.peewee-orm.com/en/latest/peewee/api.html#SelectBase.count
https://docs.peewee-orm.com/en/latest/peewee/api.html#SelectBase.exists
https://docs.peewee-orm.com/en/latest/peewee/api.html#Database.init
For some reason I can't find the "aexecute" in the .pyi file, is it normal? Should I had it myself? I would assume that some tooling was doing this job automatically?
Kind regards,