From dd046834e07384cc06fa38daaf58a5f800bbed5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20Mr=C3=A1zek?= Date: Mon, 22 Jul 2024 13:51:25 +0200 Subject: [PATCH] manager: modeling: mypy ignore comparison-overlap error --- manager/knot_resolver_manager/utils/modeling/base_schema.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manager/knot_resolver_manager/utils/modeling/base_schema.py b/manager/knot_resolver_manager/utils/modeling/base_schema.py index 78fe187af..477a6a696 100644 --- a/manager/knot_resolver_manager/utils/modeling/base_schema.py +++ b/manager/knot_resolver_manager/utils/modeling/base_schema.py @@ -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 -- 2.47.2