You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/libs/flask_sqlalchemy/table.py

40 lines
859 B

from __future__ import annotations
import typing as t
import sqlalchemy as sa
import sqlalchemy.sql.schema as sa_sql_schema
class _Table(sa.Table):
@t.overload
def __init__(
self,
name: str,
*args: sa_sql_schema.SchemaItem,
bind_key: str | None = None,
**kwargs: t.Any,
) -> None:
...
@t.overload
def __init__(
self,
name: str,
metadata: sa.MetaData,
*args: sa_sql_schema.SchemaItem,
**kwargs: t.Any,
) -> None:
...
@t.overload
def __init__(
self, name: str, *args: sa_sql_schema.SchemaItem, **kwargs: t.Any
) -> None:
...
def __init__(
self, name: str, *args: sa_sql_schema.SchemaItem, **kwargs: t.Any
) -> None:
super().__init__(name, *args, **kwargs) # type: ignore[arg-type]