mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-14 19:54:38 +08:00
39 lines
859 B
Python
39 lines
859 B
Python
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]
|