Skip to content

Commit

Permalink
Use new module-level mypy suppression syntax.
Browse files Browse the repository at this point in the history
mypy 0.990 contains the change python/mypy#13512, so
we are forced to use the latest & greatest way of specifying module-level
typing suppressions now.  Note that it is not possible to split these fixed
from the mypy update itself: Previous versions don't understand the new way
and the current version complains about the old way.  Great upgrade path!
:-/

Change-Id: I2c54bcfd65729967f0beb4a8aebe367ffb2744c7
  • Loading branch information
spt29 committed Nov 9, 2022
1 parent fa81557 commit 1efb883
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checks/.header-for-pylint
Expand Up @@ -5,7 +5,7 @@

# NOTE: DO NOT EDIT! Automatically generated from @@ORIG-FILE@@

# type: ignore[var-annotated]
# mypy: disable-error-code="arg-type,assignment,attr-defined,call-overload,comparison-overlap,dict-item,index,list-item,misc,name-defined,name-match,no-untyped-def,operator,str-format,type-var,union-attr,var-annotated"

from cmk.base.check_api import * # pylint: disable=wildcard-import,unused-wildcard-import

Expand Down
2 changes: 1 addition & 1 deletion doc/bi-example-oracle.mk
Expand Up @@ -3,7 +3,7 @@
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.

# type: ignore[name-defined]
# mypy: disable-error-code=name-defined
# pylint: disable=undefined-variable

aggregation_rules["oracle_log"] = (
Expand Down
2 changes: 1 addition & 1 deletion doc/bi-example.mk
Expand Up @@ -3,7 +3,7 @@
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.

# type: ignore[name-defined]
# mypy: disable-error-code=name-defined
# pylint: disable=undefined-variable

aggregation_rules["host"] = (
Expand Down

0 comments on commit 1efb883

Please sign in to comment.