diff options
Diffstat (limited to 'test/ext/mypy')
| -rw-r--r-- | test/ext/mypy/files/issue_7321.py | 5 | ||||
| -rw-r--r-- | test/ext/mypy/files/issue_7321_part2.py | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/test/ext/mypy/files/issue_7321.py b/test/ext/mypy/files/issue_7321.py index 6a40b9dda..d4cd7f2c4 100644 --- a/test/ext/mypy/files/issue_7321.py +++ b/test/ext/mypy/files/issue_7321.py @@ -1,4 +1,5 @@ from typing import Any +from typing import Dict from sqlalchemy.orm import declarative_base from sqlalchemy.orm import declared_attr @@ -13,9 +14,9 @@ class Foo(Base): return "name" @declared_attr - def __mapper_args__(cls) -> dict[Any, Any]: + def __mapper_args__(cls) -> Dict[Any, Any]: return {} @declared_attr - def __table_args__(cls) -> dict[Any, Any]: + def __table_args__(cls) -> Dict[Any, Any]: return {} diff --git a/test/ext/mypy/files/issue_7321_part2.py b/test/ext/mypy/files/issue_7321_part2.py index f53add1da..4227f2797 100644 --- a/test/ext/mypy/files/issue_7321_part2.py +++ b/test/ext/mypy/files/issue_7321_part2.py @@ -1,4 +1,5 @@ from typing import Any +from typing import Dict from typing import Type from sqlalchemy.orm import declarative_base @@ -16,12 +17,12 @@ class Foo(Base): return "name" @declared_attr - def __mapper_args__(cls: Type["Foo"]) -> dict[Any, Any]: + def __mapper_args__(cls: Type["Foo"]) -> Dict[Any, Any]: return {} # this was a workaround that works if there's no plugin present, make # sure that doesn't crash anything @classmethod @declared_attr - def __table_args__(cls: Type["Foo"]) -> dict[Any, Any]: + def __table_args__(cls: Type["Foo"]) -> Dict[Any, Any]: return {} |
