File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ _TSelect = TypeVar("_TSelect")
27
27
if sys.version_info.minor >= 7:
28
28
29
29
class Select(_Select, Generic[_TSelect]):
30
- pass
30
+ inherit_cache = True
31
31
32
32
# This is not comparable to sqlalchemy.sql.selectable.ScalarSelect, that has a different
33
33
# purpose. This is the same as a normal SQLAlchemy Select class where there's only one
34
34
# entity, so the result will be converted to a scalar by default. This way writing
35
35
# for loops on the results will feel natural.
36
36
class SelectOfScalar(_Select, Generic[_TSelect]):
37
- pass
37
+ inherit_cache = True
38
38
39
39
else:
40
40
from typing import GenericMeta # type: ignore
@@ -43,10 +43,10 @@ else:
43
43
pass
44
44
45
45
class _Py36Select(_Select, Generic[_TSelect], metaclass=GenericSelectMeta):
46
- pass
46
+ inherit_cache = True
47
47
48
48
class _Py36SelectOfScalar(_Select, Generic[_TSelect], metaclass=GenericSelectMeta):
49
- pass
49
+ inherit_cache = True
50
50
51
51
# Cast them for editors to work correctly, from several tricks tried, this works
52
52
# for both VS Code and PyCharm
You can’t perform that action at this time.
0 commit comments