From fa75b258af832098193fcb33a2edafe99f531a92 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Fri, 1 Sep 2023 12:53:01 +0200 Subject: [PATCH] Make linter happy: E721 do not compare types. --- src/Products/PluggableAuthService/UserPropertySheet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Products/PluggableAuthService/UserPropertySheet.py b/src/Products/PluggableAuthService/UserPropertySheet.py index 39d976a..6f54233 100644 --- a/src/Products/PluggableAuthService/UserPropertySheet.py +++ b/src/Products/PluggableAuthService/UserPropertySheet.py @@ -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):