]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lint: flake8: satisfy newer version
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 14 Aug 2023 08:05:39 +0000 (10:05 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 14 Aug 2023 08:08:44 +0000 (08:08 +0000)
manager/knot_resolver_manager/utils/modeling/base_schema.py

index 32388816e5284108f0d1e6a0f978a4bb2c777caa..1bada9bcee04f1809a237483e2232d00bebc8b99 100644 (file)
@@ -37,7 +37,7 @@ def is_obj_type(obj: Any, types: Union[type, Tuple[Any, ...], Tuple[type, ...]])
     # pylint: disable=unidiomatic-typecheck
     if isinstance(types, tuple):
         return type(obj) in types
-    return type(obj) == types
+    return type(obj) is types
 
 
 class Serializable(ABC):