From: Aleš Mrázek Date: Mon, 22 Jul 2024 11:51:25 +0000 (+0200) Subject: manager: modeling: mypy ignore comparison-overlap error X-Git-Tag: v6.0.9~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd046834e07384cc06fa38daaf58a5f800bbed5b;p=thirdparty%2Fknot-resolver.git manager: modeling: mypy ignore comparison-overlap error --- 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