Skip to content

Commit

Permalink
Merge branch 'manager-mypy-fix' into 'master'
Browse files Browse the repository at this point in the history
manager: modeling: mypy ignore comparison-overlap error

See merge request knot/knot-resolver!1570
  • Loading branch information
alesmrazek committed Aug 21, 2024
2 parents 5ba521a + dd04683 commit 061ecdb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manager/knot_resolver_manager/utils/modeling/base_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,9 @@ def map_object(
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
Expand Down

0 comments on commit 061ecdb

Please sign in to comment.