Skip to content
Prev Previous commit
Next Next commit
Revert "Fix bug"
This reverts commit 7561c01.
  • Loading branch information
forest-benchling authored and dbanty committed Aug 1, 2021
commit 9da37c6e43bbde4ae7bf71bc54a9d6204da8ad5e
6 changes: 2 additions & 4 deletions openapi_python_client/parser/properties/model_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ def _is_subtype(first: Property, second: Property) -> bool:
_is_int_enum(first) and isinstance(second, IntProperty),
_is_string_enum(first)
and _is_string_enum(second)
and set(e.value for e in first) <= set(e.value for e in second),
_is_int_enum(first)
and _is_int_enum(second)
and set(e.value for e in first) <= set(e.value for e in second),
and set(first.values.items()) <= set(second.values.items()),
_is_int_enum(first) and _is_int_enum(second) and set(first.values.items()) <= set(second.values.items()),
]
)

Expand Down