switch ordering
This commit is contained in:
parent
4d6ef9a10c
commit
86d335007a
@ -267,9 +267,9 @@ class ObjectVar(Var[OBJECT_TYPE], python_types=Mapping):
|
|||||||
fixed_type = var_type if isclass(var_type) else get_origin(var_type)
|
fixed_type = var_type if isclass(var_type) else get_origin(var_type)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(isclass(fixed_type) and not issubclass(fixed_type, Mapping))
|
is_typeddict(fixed_type)
|
||||||
|
or (isclass(fixed_type) and not issubclass(fixed_type, Mapping))
|
||||||
or (fixed_type in types.UnionTypes)
|
or (fixed_type in types.UnionTypes)
|
||||||
or is_typeddict(fixed_type)
|
|
||||||
):
|
):
|
||||||
attribute_type = get_attribute_access_type(var_type, name)
|
attribute_type = get_attribute_access_type(var_type, name)
|
||||||
if attribute_type is None:
|
if attribute_type is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user