Skip to content

Commit f01fee7

Browse files
committed
Address Ruff lint
1 parent 3de0e4d commit f01fee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openapi_python_client/parser/properties/model_property.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ def _values_are_subset(first: EnumProperty, second: EnumProperty) -> bool:
223223
def _types_are_subset(first: EnumProperty, second: Property) -> bool:
224224
from . import IntProperty, StringProperty
225225

226-
if first.value_type == int and isinstance(second, IntProperty):
226+
if first.value_type is int and isinstance(second, IntProperty):
227227
return True
228-
if first.value_type == str and isinstance(second, StringProperty):
228+
if first.value_type is str and isinstance(second, StringProperty):
229229
return True
230230
return False
231231

0 commit comments

Comments
 (0)