]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: modeling: mypy ignore comparison-overlap error docs-develop-mana-o8ftid/deployments/4936
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 22 Jul 2024 11:51:25 +0000 (13:51 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Wed, 21 Aug 2024 11:18:10 +0000 (13:18 +0200)
manager/knot_resolver_manager/utils/modeling/base_schema.py

index 78fe187af323bedf0d6cd27792393642d15a194d..477a6a696aa7ccf213b248c85d6e36813748fbf0 100644 (file)
@@ -474,8 +474,9 @@ class ObjectMapper:
             return obj
 
         # when the specified type is Any, just return the given value
-        # (pylint does something weird on the following line and it happens only on python 3.10)
-        elif tp == Any:  # pylint: disable=comparison-with-callable
+        # on mypy version 1.11.0 comparison-overlap error started popping up
+        # https://github.com/python/mypy/issues/17665
+        elif tp == Any:  # type: ignore[comparison-overlap]
             return obj
 
         # BaseValueType subclasses