Skip to content

Commit

Permalink
Make linter happy: E721 do not compare types.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Sep 1, 2023
1 parent f0fde29 commit fa75b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Products/PluggableAuthService/UserPropertySheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def _guessSchema(kw):
if isinstance(v, (bytes, str)):
ptype = 'string'

elif type(v) == int:
# bool is a subsclass of int, so we cannot use isinstance
elif type(v) is int:
# bool is a subclass of int, so we cannot use isinstance
ptype = 'int'

elif isinstance(v, float):
Expand Down

0 comments on commit fa75b25

Please sign in to comment.