@overload
def composite(
- _class_or_attr: Type[_CC],
+ _class_or_attr: _CompositeAttrType[Any],
*attrs: _CompositeAttrType[Any],
group: Optional[str] = None,
deferred: bool = False,
info: Optional[_InfoType] = None,
doc: Optional[str] = None,
**__kw: Any,
-) -> Composite[_CC]:
+) -> Composite[Any]:
...
@overload
def composite(
- _class_or_attr: _CompositeAttrType[Any],
+ _class_or_attr: Type[_CC],
*attrs: _CompositeAttrType[Any],
group: Optional[str] = None,
deferred: bool = False,
info: Optional[_InfoType] = None,
doc: Optional[str] = None,
**__kw: Any,
-) -> Composite[Any]:
+) -> Composite[_CC]:
...
"""
ATTR_EMPTY = 3
- """Symbol used internally to indicate an attribute had no callable.""",
+ """Symbol used internally to indicate an attribute had no callable."""
NO_VALUE = 4
"""Symbol which may be placed as the 'previous' value of an attribute,
_T = TypeVar("_T", bound="Any")
_SI = TypeVar("_SI", bound="SchemaItem")
-_ServerDefaultType = Union["FetchedValue", str, TextClause, ColumnElement]
+_ServerDefaultType = Union["FetchedValue", str, TextClause, ColumnElement[Any]]
_TAB = TypeVar("_TAB", bound="Table")