Werk #16819: Wrong and incomplete type annotations in agent based API v2

Component Checks & agents
Title Wrong and incomplete type annotations in agent based API v2
Date Jun 2, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This change only affects plugin developers using the API cmk.agent_based.v2 in conjunction with static type checkers.

For section plugins the type annotations for host label functions where wrong and incomplete. The order of the arguments was swapped and the overload allowing to implement host label functions with parameter merge type "ALL" was missing, resulting in flase positives in the linters report.

To the list of all Werks