Skip to content

Commit ea8e65b

Browse files
committed
Clean up no-untyped-def #655
Change-Id: Iddb0f514e345835bb8d4aae34bec52b3ee1a993f
1 parent 895608b commit ea8e65b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

cmk/base/legacy_checks/bvip_link.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
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"
76

7+
from collections.abc import Iterator, Mapping, Sequence
88

99
from cmk.agent_based.legacy.v0_unstable import LegacyCheckDefinition
1010
from cmk.agent_based.v2 import SNMPTree, StringTable
@@ -13,13 +13,15 @@
1313
check_info = {}
1414

1515

16-
def discover_bvip_link(info):
16+
def discover_bvip_link(info: StringTable) -> list[tuple[None, dict[str, object]]]:
1717
if info:
1818
return [(None, {})]
1919
return []
2020

2121

22-
def check_bvip_link(_no_item, params, info):
22+
def check_bvip_link(
23+
_no_item: None, params: Mapping[str, Sequence[int]], info: StringTable
24+
) -> Iterator[tuple[int, str]]:
2325
count = 0
2426
states = {
2527
0: "No Link",

0 commit comments

Comments
 (0)