Relax registry type annotations for exposition by cjwatson · Pull Request #1149 · prometheus/client_python
added 2 commits
November 20, 2025 12:28We require Python >= 3.9 now, so there's no reason to avoid this any more. Signed-off-by: Colin Watson <cjwatson@debian.org>
Anything with a suitable `collect` method will do: for instance, it's sometimes useful to be able to define a class whose `collect` method yields all metrics from a registry whose names have a given prefix, and such a class doesn't need to inherit from `CollectorRegistry`. Signed-off-by: Colin Watson <cjwatson@debian.org>
cjwatson
deleted the
exposition-relax-collector-typing
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters