8000 Mark collector parameter as optional in PlatformCollector · evstratbg/client_python@0600a3d · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0600a3d

Browse files
committed
Mark collector parameter as optional in PlatformCollector
Signed-off-by: Alberto Donato <alberto.donato@gmail.com>
1 parent cfc11d8 commit 0600a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus_client/platform_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PlatformCollector(Collector):
99
"""Collector for python platform information"""
1010

1111
def __init__(self,
12-
registry: CollectorRegistry = REGISTRY,
12+
registry: Optional[CollectorRegistry] = REGISTRY,
1313
platform: Optional[Any] = None,
1414
):
1515
self._platform = pf if platform is None else platform

0 commit comments

Comments
 (0)
0