Skip to content
Snippets Groups Projects
Commit ea1f887b4deb authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:shirt: use isinstance instead of type() == ... as pylint suggests

parent 3a4d39d7ce3a
No related branches found
1 merge request!6Topic/13.0/improvements
Pipeline #28322 passed
......@@ -40,5 +40,6 @@
"""Return an item, eventually created with the factory"""
# create a tuple out of args and kwargs
key = tuple(
tuple(arg.items()) if type(arg) == dict else arg for arg in args
tuple(arg.items()) if isinstance(arg, dict) else arg
for arg in args
) + tuple(
......@@ -44,5 +45,5 @@
) + tuple(
(key, tuple(value.items()) if type(value) == dict else value)
(key, tuple(value.items()) if isinstance(value, dict) else value)
for key, value in kwargs.items()
)
if key not in self.__data:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment