Skip to content

Commit

Permalink
[REF] spec_driven_model: Avoid error Flake8 E721 do not compare types…
Browse files Browse the repository at this point in the history
…, for exact checks use / , for instance checks use , necessary for the new version of pre-commit.
  • Loading branch information
mbcosta committed Oct 25, 2023
1 parent 35ec40e commit a72350b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec_driven_model/models/spec_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _export_field(self, xsd_field, class_obj, field_spec, export_value=None):
return self._export_float_monetary(
xsd_field, xsd_type, class_obj, xsd_required, export_value
)
elif type(self[xsd_field]) == str:
elif type(self[xsd_field]) is str:
return self[xsd_field].strip()
else:
return self[xsd_field]
Expand Down

0 comments on commit a72350b

Please sign in to comment.