Skip to content

Commit b61fa50

Browse files
committed
Clean up no-untyped-def #466-470
Change-Id: I90f283676e5cd5a49f49b678c0dcbaae6b5ed2a1
1 parent 22dd679 commit b61fa50

File tree

5 files changed

+6
-16
lines changed

5 files changed

+6
-16
lines changed

cmk/gui/plugins/wato/check_parameters/db_usage.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
44
# conditions defined in the file COPYING, which is part of this source code package.
55

6-
# mypy: disable-error-code="no-untyped-def"
7-
86
from cmk.gui.i18n import _
97
from cmk.gui.plugins.wato.utils import (
108
CheckParameterRulespecWithoutItem,
@@ -15,7 +13,7 @@
1513
from cmk.gui.valuespec import Dictionary
1614

1715

18-
def _parameter_valuespec_db_usage():
16+
def _parameter_valuespec_db_usage() -> Dictionary:
1917
return Dictionary(
2018
elements=[
2119
(

cmk/gui/plugins/wato/check_parameters/hw_psu.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
44
# conditions defined in the file COPYING, which is part of this source code package.
55

6-
# mypy: disable-error-code="no-untyped-def"
7-
86
from cmk.gui.i18n import _
97
from cmk.gui.plugins.wato.utils import (
108
CheckParameterRulespecWithItem,
@@ -14,7 +12,7 @@
1412
from cmk.gui.valuespec import Dictionary, Percentage, TextInput, Tuple
1513

1614

17-
def _parameter_valuespec_hw_psu():
15+
def _parameter_valuespec_hw_psu() -> Dictionary:
1816
return Dictionary(
1917
elements=[
2018
(

cmk/gui/plugins/wato/check_parameters/nginx_status.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
44
# conditions defined in the file COPYING, which is part of this source code package.
55

6-
# mypy: disable-error-code="no-untyped-def"
7-
86
from cmk.gui.i18n import _
97
from cmk.gui.plugins.wato.utils import (
108
CheckParameterRulespecWithItem,
@@ -14,14 +12,14 @@
1412
from cmk.gui.valuespec import Dictionary, Integer, TextInput, Tuple
1513

1614

17-
def _item_spec_nginx_status():
15+
def _item_spec_nginx_status() -> TextInput:
1816
return TextInput(
1917
title=_("Nginx Server"),
2018
help=_("A string-combination of servername and port, e.g. 127.0.0.1:80."),
2119
)
2220

2321

24-
def _parameter_valuespec_nginx_status():
22+
def _parameter_valuespec_nginx_status() -> Dictionary:
2523
return Dictionary(
2624
elements=[
2725
(

cmk/gui/plugins/wato/check_parameters/overall_utilization_multiitem.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
44
# conditions defined in the file COPYING, which is part of this source code package.
55

6-
# mypy: disable-error-code="no-untyped-def"
7-
86
from cmk.gui.i18n import _
97
from cmk.gui.plugins.wato.utils import (
108
CheckParameterRulespecWithItem,
@@ -14,7 +12,7 @@
1412
from cmk.gui.valuespec import Dictionary, Percentage, TextInput, Tuple
1513

1614

17-
def _parameter_valuespec_overall_utilization_multiitem():
15+
def _parameter_valuespec_overall_utilization_multiitem() -> Dictionary:
1816
return Dictionary(
1917
help=_(
2018
# xgettext: no-python-format

cmk/gui/plugins/wato/check_parameters/ping_levels.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
44
# conditions defined in the file COPYING, which is part of this source code package.
55

6-
# mypy: disable-error-code="no-untyped-def"
7-
86
from cmk.gui.i18n import _
97
from cmk.gui.plugins.wato.utils import (
108
check_icmp_params,
@@ -15,7 +13,7 @@
1513
from cmk.gui.valuespec import Dictionary
1614

1715

18-
def _valuespec_ping_levels():
16+
def _valuespec_ping_levels() -> Dictionary:
1917
return Dictionary(
2018
title=_("Ping and host check parameters"),
2119
help=_(

0 commit comments

Comments
 (0)