@@ -103,12 +103,12 @@ def __repr__(self):
103103 def __init__ (self : T ,
104104 name : str ,
105105 documentation : str ,
106- labelnames : Sequence [str ]= (),
107- namespace : str = '' ,
108- subsystem : str = '' ,
109- unit : str = '' ,
110- registry : CollectorRegistry = REGISTRY ,
111- _labelvalues : Optional [Sequence [str ]]= None ,
106+ labelnames : Sequence [str ] = (),
107+ namespace : str = '' ,
108+ subsystem : str = '' ,
109+ unit : str = '' ,
110+ registry : CollectorRegistry = REGISTRY ,
111+ _labelvalues : Optional [Sequence [str ]] = None ,
112112 ) -> None :
113113 self ._name = _build_full_name (self ._type , name , namespace , subsystem , unit )
114114 self ._labelnames = _validate_labelnames (self , labelnames )
@@ -269,7 +269,7 @@ def _metric_init(self) -> None:
269269 self ._labelvalues )
270270 self ._created = time .time ()
271271
272- def inc (self , amount : float = 1 , exemplar : Optional [Dict [str , str ]]= None ) -> None :
272+ def inc (self , amount : float = 1 , exemplar : Optional [Dict [str , str ]] = None ) -> None :
273273 """Increment counter by the given amount."""
274274 self ._raise_if_not_observable ()
275275 if amount < 0 :
@@ -279,7 +279,7 @@ def inc(self, amount: float=1, exemplar: Optional[Dict[str, str]]=None) -> None:
279279 _validate_exemplar (exemplar )
280280 self ._value .set_exemplar (Exemplar (exemplar , amount , time .time ()))
281281
282- def count_exceptions (self , exception : Type [BaseException ]= Exception ) -> ExceptionCounter :
282+ def count_exceptions (self , exception : Type [BaseException ] = Exception ) -> ExceptionCounter :
283283 """Count exceptions in a block of code or function.
284284
285285 Can be used as a function decorator or context manager.
@@ -675,13 +675,13 @@ class Enum(MetricWrapperBase):
675675 def __init__ (self ,
676676 name : str ,
677677 documentation : str ,
678- labelnames : Sequence [str ]= (),
679- namespace : str = '' ,
680- subsystem : str = '' ,
681- unit : str = '' ,
682- registry : CollectorRegistry = REGISTRY ,
683- _labelvalues : Optional [Sequence [str ]]= None ,
684- states : Optional [Sequence [str ]]= None ,
678+ labelnames : Sequence [str ] = (),
679+ namespace : str = '' ,
680+ subsystem : str = '' ,
681+ unit : str = '' ,
682+ registry : CollectorRegistry = REGISTRY ,
683+ _labelvalues : Optional [Sequence [str ]] = None ,
684+ states : Optional [Sequence [str ]] = None ,
685685 ):
686686 super ().__init__ (
687687 name = name ,
0 commit comments