Explore the latest product updates and best practices at our hybrid Checkmk Conference #12 from June 16-18, 2026 – Register here

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 Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.3.0p5 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT

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