From f2bd4f513628bb2a7a8e8b36383e3a4324eac803 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 27 Apr 2022 15:43:02 -0400 Subject: inline mypy config; files ignoring type errors for the moment to simplify pyproject.toml change the remaining files that aren't going to be typed on this first pass (unless of course someone wants to type some of these) to include # mypy: ignore-errors. for the moment, only a handful of ORM modules are to have more type checking implemented. It's important that ignore-errors is used and not "# type: ignore", as in the latter case, mypy doesn't even read the existing types in the file, which makes it impossible to type any files that refer to those modules at all. to simplify ongoing typing work use inline mypy config for remaining files that are "done" for now, indicating the level of type checking they currently have. Change-Id: I98669c1a305c2f0adba85d10b5425541f3fe9533 --- lib/sqlalchemy/orm/attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/orm/attributes.py') diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 619af6510..9a6e94e22 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -4,6 +4,7 @@ # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php +# mypy: ignore-errors """Defines instrumentation for class attributes and their interaction with instances. @@ -80,7 +81,6 @@ if TYPE_CHECKING: from .state import InstanceState from ..sql.dml import _DMLColumnElement from ..sql.elements import ColumnElement - from ..sql.elements import SQLCoreOperations _T = TypeVar("_T") -- cgit v1.2.1