File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,14 @@ class BenefitsSupport(BaseModel):
35
35
36
36
simple_ira : Optional [BenefitFeaturesAndOperations ] = None
37
37
38
- __pydantic_extra__ : Dict [str , Optional [BenefitFeaturesAndOperations ]] = FieldInfo (init = False ) # pyright: ignore[reportIncompatibleVariableOverride]
39
38
if TYPE_CHECKING :
39
+ # Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
40
+ # value to this field, so for compatibility we avoid doing it at runtime.
41
+ __pydantic_extra__ : Dict [str , Optional [BenefitFeaturesAndOperations ]] = FieldInfo (init = False ) # pyright: ignore[reportIncompatibleVariableOverride]
42
+
40
43
# Stub to indicate that arbitrary properties are accepted.
41
44
# To access properties that are not valid identifiers you can use `getattr`, e.g.
42
45
# `getattr(obj, '$type')`
43
46
def __getattr__ (self , attr : str ) -> Optional [BenefitFeaturesAndOperations ]: ...
47
+ else :
48
+ __pydantic_extra__ : Dict [str , Optional [BenefitFeaturesAndOperations ]]
You can’t perform that action at this time.
0 commit comments