From 71cb17c81d358646f8dfeac14e9662ce42bb94df Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Thu, 13 May 2021 21:20:51 +0200 Subject: Remove pep484 type comments from the code Current effort is around the stub package, and having typing in two places makes thing worse, since the types here are usually outdated compared to the version in the stubs. Once v2 gets under way we can start consolidating the types here. Fixes: #6461 Change-Id: I7132a444bd7138123074bf5bc664b4bb119a85ce --- lib/sqlalchemy/orm/strategy_options.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/sqlalchemy/orm/strategy_options.py') diff --git a/lib/sqlalchemy/orm/strategy_options.py b/lib/sqlalchemy/orm/strategy_options.py index 60ae69176..e371442fd 100644 --- a/lib/sqlalchemy/orm/strategy_options.py +++ b/lib/sqlalchemy/orm/strategy_options.py @@ -32,12 +32,6 @@ from ..sql import visitors from ..sql.base import _generative from ..sql.base import Generative -if util.TYPE_CHECKING: - from typing import Sequence - - from .context import QueryContext - from ..sql.elements import ColumnElement - class Load(Generative, LoaderOption): """Represents loader options which modify the state of a @@ -119,7 +113,6 @@ class Load(Generative, LoaderOption): return load def _generate_extra_criteria(self, context): - # type: (QueryContext) -> Sequence[ColumnElement] """Apply the current bound parameters in a QueryContext to the "extra_criteria" stored with this Load object. -- cgit v1.2.1