# HG changeset patch
# User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr>
# Date 1640789511 -3600
#      Wed Dec 29 15:51:51 2021 +0100
# Branch 13.0
# Node ID ea1f887b4deb495ea001eccd85c5a679a3e333a3
# Parent  3a4d39d7ce3a7c8ed38ec7010bab3b5388bdd05f
👕 use isinstance instead of type() == ... as pylint suggests

diff --git a/icu_format.py b/icu_format.py
--- a/icu_format.py
+++ b/icu_format.py
@@ -40,9 +40,10 @@
         """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(
-            (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: