mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 02:42:29 +08:00
Mark database parameters in Peewee as optional (#13442)
Peewee injects database arguments using a decorator whenever a model or query has a bound connection. Passing the argument is therefore not required, even for some function parameters without default values.
This commit is contained in:
@@ -11,6 +11,16 @@ peewee.DQ.__invert__
|
||||
peewee.Window.as_groups
|
||||
peewee.Window.as_range
|
||||
peewee.Window.as_rows
|
||||
# Wrapped with @database_required which sometimes injects the database argument
|
||||
peewee.BaseQuery.execute
|
||||
peewee.CompoundSelectQuery.exists
|
||||
peewee.SelectBase.count
|
||||
peewee.SelectBase.exists
|
||||
peewee.SelectBase.first
|
||||
peewee.SelectBase.get
|
||||
peewee.SelectBase.peek
|
||||
peewee.SelectBase.scalar
|
||||
peewee.SelectBase.scalars
|
||||
|
||||
# Ignore missing playhouse modules and names we don't currently provide
|
||||
playhouse\.\w+?
|
||||
|
||||
Reference in New Issue
Block a user