from __future__ import annotations
from typing import Any
+from typing import ClassVar
from typing import TYPE_CHECKING
from sqlalchemy import create_engine
"""
+ Address: ClassVar[type]
+
@declared_attr
def addresses(cls: type[Any]) -> Mapped[list[AddressWithParent]]:
cls.Address = type(
name = self.__name__
break
else:
- name = attributes._UNKNOWN_ATTR_KEY # type: ignore[assignment]
+ name = attributes._UNKNOWN_ATTR_KEY # type: ignore[assignment,unused-ignore] # noqa: E501
return cast(
"_HybridClassLevelAccessor[_T]",
self.symmetric_difference_update(other)
return self
- def __isub__(self, other: AbstractSet[object]) -> MutableSet[_T]: # type: ignore[misc] # noqa: E501
+ def __isub__(self, other: AbstractSet[object]) -> MutableSet[_T]: # type: ignore[misc,unused-ignore] # noqa: E501
self.difference_update(other)
return self
set.remove(self, elem)
self.changed()
- def discard(self, elem: _T) -> None:
+ def discard(self, elem: _T) -> None: # type: ignore[override,unused-ignore] # noqa: E501
set.discard(self, elem)
self.changed()
"_label_select_column is only relevant within "
"the columns clause of a SELECT or RETURNING"
)
+ result_expr: elements.Label[Any] | _CompileLabel
+
if isinstance(column, elements.Label):
if col_expr is not column:
result_expr = _CompileLabel(
self, __value: Mapping[_KT, _VT], /
) -> immutabledict[_KT, _VT]:
return immutabledict(
- dict.__or__(self, __value), # type: ignore[call-overload]
+ dict.__or__(self, __value), # type: ignore[call-overload,operator,unused-ignore] # noqa: E501
)
def __ror__( # type: ignore[override]
self, __value: Mapping[_KT, _VT], /
) -> immutabledict[_KT, _VT]:
return immutabledict(
- dict.__ror__(self, __value), # type: ignore[call-overload]
+ dict.__ror__(self, __value), # type: ignore[call-overload,operator,unused-ignore] # noqa: E501
)
[project.optional-dependencies]
asyncio = ["greenlet>=1"]
mypy = [
- "mypy >= 1.19",
+ "mypy >= 1.20",
"types-greenlet >= 2",
]
mssql = ["pyodbc"]