summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/roles.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/sql/roles.py')
-rw-r--r--lib/sqlalchemy/sql/roles.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/roles.py b/lib/sqlalchemy/sql/roles.py
index 4c4f49aa8..beb73c1b5 100644
--- a/lib/sqlalchemy/sql/roles.py
+++ b/lib/sqlalchemy/sql/roles.py
@@ -211,9 +211,11 @@ class StrictFromClauseRole(FromClauseRole):
__slots__ = ()
# does not allow text() or select() objects
- c: ColumnCollection
+ c: ColumnCollection[Any]
- @property
+ # this should be ->str , however, working around:
+ # https://github.com/python/mypy/issues/12440
+ @util.ro_non_memoized_property
def description(self) -> str:
raise NotImplementedError()