from .schema import ForeignKey
from .schema import ForeignKeyConstraint
from .schema import Table
+ from .sqltypes import TableValueType
from .type_api import TypeEngine
from .visitors import _CloneCallableType
class NoInit:
- def __init__(self, *arg: Any, **kw: Any) -> NoReturn:
+ def __init__(self, *arg: Any, **kw: Any):
raise NotImplementedError(
"The %s class is not intended to be constructed "
"directly. Please use the %s() standalone "
return name
@util.ro_non_memoized_property
- def implicit_returning(self):
+ def implicit_returning(self) -> bool:
return self.element.implicit_returning # type: ignore
@property
def _init(
self,
selectable,
- name=None,
- table_value_type=None,
- joins_implicitly=False,
+ name: Optional[str] = None,
+ table_value_type: Optional[TableValueType] = None,
+ joins_implicitly: bool = False,
) -> None:
super()._init(selectable, name=name)