11import inspect
22from contextlib import _AsyncGeneratorContextManager , asynccontextmanager
3- from typing import Tuple , Type , Union
3+ from typing import ClassVar , Tuple , Type , Union
44from uuid import uuid4
55
66import pytest
@@ -107,7 +107,7 @@ class ParentModel(sa_bind.declarative_base):
107107 # required in order to access columns with server defaults
108108 # or SQL expression defaults, subsequent to a flush, without
109109 # triggering an expired load
110- __mapper_args__ = {"eager_defaults" : True }
110+ __mapper_args__ : ClassVar = {"eager_defaults" : True }
111111
112112 model_id = Column (Integer , primary_key = True , autoincrement = True )
113113 name = Column (String )
@@ -124,7 +124,7 @@ class ChildModel(sa_bind.declarative_base):
124124 # required in order to access columns with server defaults
125125 # or SQL expression defaults, subsequent to a flush, without
126126 # triggering an expired load
127- __mapper_args__ = {"eager_defaults" : True }
127+ __mapper_args__ : ClassVar = {"eager_defaults" : True }
128128
129129 model_id = Column (Integer , primary_key = True , autoincrement = True )
130130 parent_model_id = Column (
0 commit comments