Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stubs/peewee/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ peewee._ModelQueryHelper.models
# Wrapped with @database_required which sometimes injects the database argument
peewee.BaseQuery.execute
peewee.CompoundSelectQuery.exists
peewee.ModelSelect.exists
peewee.SelectBase.count
peewee.SelectBase.exists
peewee.SelectBase.first
Expand Down
2 changes: 1 addition & 1 deletion stubs/peewee/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# We're not providing stubs for all playhouse modules right now
# https://github.com/python/typeshed/pull/11731#issuecomment-2065729058
version = "4.5.1"
version = "4.5.3"
upstream-repository = "https://github.com/coleifer/peewee"
partial-stub = true

Expand Down
2 changes: 2 additions & 0 deletions stubs/peewee/peewee.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ def Default(value) -> SQL: ...

class Function(ColumnBase):
no_coerce_functions: ClassVar[set[str]]
subquery_functions: ClassVar[set[str]]
name: str | None
arguments: tuple[Any, ...] | None # Positional SQL function args: values, columns, or other nodes
def __init__(self, name, arguments, coerce: bool = True, python_value=None) -> None: ...
Expand Down Expand Up @@ -904,6 +905,7 @@ class Database(_callable_context_manager):
def batch_commit(self, it, n) -> Generator[Incomplete]: ...
def table_exists(self, table_name, schema: str | None = None) -> bool: ...
def get_tables(self, schema: str | None = None) -> list[str]: ...
def get_views(self, schema: str | None = None) -> list[ViewMetadata]: ...
def get_indexes(self, table, schema: str | None = None) -> list[IndexMetadata]: ...
def get_columns(self, table, schema: str | None = None) -> list[ColumnMetadata]: ...
def get_primary_keys(self, table, schema: str | None = None): ...
Expand Down
Loading