Skip to content

Commit

Permalink
Mark collector parameter as optional in ProcessCollector
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodonato committed Oct 22, 2023
1 parent 249490e commit 50a240c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prometheus_client/process_collector.py
@@ -1,5 +1,5 @@
import os
from typing import Callable, Iterable, Union
from typing import Callable, Iterable, Optional, Union

from .metrics_core import CounterMetricFamily, GaugeMetricFamily, Metric
from .registry import Collector, CollectorRegistry, REGISTRY
Expand All @@ -20,7 +20,7 @@ def __init__(self,
namespace: str = '',
pid: Callable[[], Union[int, str]] = lambda: 'self',
proc: str = '/proc',
registry: CollectorRegistry = REGISTRY):
registry: Optional[CollectorRegistry] = REGISTRY):
self._namespace = namespace
self._pid = pid
self._proc = proc
Expand Down

0 comments on commit 50a240c

Please sign in to comment.