#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
-# mypy: disable-error-code="misc"
+# mypy: disable-error-code="misc, untyped-decorator"
from __future__ import annotations
from datetime import date as date_cls
# the MIT License: https://www.opensource.org/licenses/mit-license.php
# mypy: disable-error-code="misc,no-redef,valid-type,no-untyped-call"
# mypy: disable-error-code="index,no-any-return,arg-type,assignment"
+# mypy: disable-error-code="untyped-decorator"
from __future__ import annotations
from typing import Any
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
-# mypy: disable-error-code="misc, type-arg"
+# mypy: disable-error-code="misc, type-arg, untyped-decorator"
from __future__ import annotations
from collections.abc import Mapping
_Ts = TypeVarTuple("_Ts")
-class Row(BaseRow, _RowBase[Unpack[_Ts]], Generic[Unpack[_Ts]]):
+class Row(BaseRow, _RowBase[Unpack[_Ts]], Generic[Unpack[_Ts]]): # type: ignore[misc] # noqa: E501
"""Represent a single result row.
The :class:`.Row` object represents a row of a database result. It is
f"parameter on the mapped collection factory."
)
- @collection.appender # type: ignore[misc]
- @collection.internally_instrumented # type: ignore[misc]
+ @collection.appender # type: ignore[untyped-decorator]
+ @collection.internally_instrumented # type: ignore[untyped-decorator]
def set(
self,
value: _KT,
self.__setitem__(key, value, _sa_initiator) # type: ignore[call-arg]
- @collection.remover # type: ignore[misc]
- @collection.internally_instrumented # type: ignore[misc]
+ @collection.remover # type: ignore[untyped-decorator]
+ @collection.internally_instrumented # type: ignore[untyped-decorator]
def remove(
self,
value: _KT,
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
+# mypy: disable-error-code="untyped-decorator"
from __future__ import annotations
else:
_index: int = 0 # type: ignore[no-redef]
- @cython.cfunc # type:ignore[misc]
- @cython.inline # type:ignore[misc]
+ @cython.cfunc
+ @cython.inline
def _add_missing(self: anon_map, key: _AM_KEY, /) -> int:
val: int = self._index
self._index += 1
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
# mypy: disable-error-code="misc, no-any-return, no-untyped-def, override"
+# mypy: disable-error-code="untyped-decorator"
from __future__ import annotations
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
-# mypy: disable-error-code="misc, arg-type"
+# mypy: disable-error-code="misc, arg-type, untyped-decorator"
from __future__ import annotations
from typing import Any
return None
# this is ported from py3.13.0a7
- _BASE_GET_ANNOTATIONS = type.__dict__["__annotations__"].__get__ # type: ignore # noqa: E501
+ _BASE_GET_ANNOTATIONS = type.__dict__["__annotations__"].__get__
def _get_dunder_annotations(obj):
if isinstance(obj, type):
[project.optional-dependencies]
asyncio = ["greenlet>=1"]
mypy = [
- "mypy >= 1.7",
+ "mypy >= 1.19",
"types-greenlet >= 2",
]
mssql = ["pyodbc"]
mypy = [
{include-group = "tests-greenlet"},
- "mypy>=1.16.0",
+ "sqlalchemy[mypy]",
"nox", # because we check noxfile.py
"pytest>8,<10", # alembic/testing imports pytest
"types-greenlet",