diff --git a/stubs/peewee/peewee.pyi b/stubs/peewee/peewee.pyi index 511b205e8845..f9066c393709 100644 --- a/stubs/peewee/peewee.pyi +++ b/stubs/peewee/peewee.pyi @@ -838,7 +838,7 @@ class Database(_callable_context_manager): def rollback(self): ... def batch_commit(self, it, n) -> Generator[Incomplete, None, None]: ... def table_exists(self, table_name, schema: str | None = None): ... - def get_tables(self, schema: str | None = None) -> None: ... + def get_tables(self, schema: str | None = None) -> list[str]: ... 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) -> None: ... @@ -909,7 +909,7 @@ class SqliteDatabase(Database): def last_insert_id(self, cursor, query_type: Incomplete | None = ...): ... def rows_affected(self, cursor): ... def begin(self, lock_type: Incomplete | None = ...) -> None: ... - def get_tables(self, schema: str | None = None): ... + 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]: ... @@ -946,7 +946,7 @@ class PostgresqlDatabase(Database): def last_insert_id(self, cursor, query_type: Incomplete | None = ...): ... def rows_affected(self, cursor): ... def begin(self, isolation_level: str | None = None) -> None: ... - def get_tables(self, schema: str | None = None): ... + 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]: ... @@ -980,7 +980,7 @@ class MySQLDatabase(Database): def is_connection_usable(self) -> bool: ... def default_values_insert(self, ctx): ... def begin(self, isolation_level: str | None = None) -> None: ... - def get_tables(self, schema: str | None = None): ... + 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]: ...