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:
Joakim Soderlund authored and GitHub committed 2025-03-07 11:30:50 +01:00
1 parent 2f8de52edf
commit a1c28f71da
2 files changed
+29 -19

No files matched your search

@@ -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+?