Skip to content

Commit

Permalink
Ditch default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Pliner committed Jan 28, 2022
1 parent 76c0c48 commit 4ad168e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus_client/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def _metric_init(self) -> None:
self._labelvalues + (floatToGoString(b),))
)

def observe(self, amount: float = 1, exemplar: Optional[Dict[str, str]] = None) -> None:
def observe(self, amount: float, exemplar: Optional[Dict[str, str]] = None) -> None:
"""Observe the given amount.
The amount is usually positive or zero. Negative values are
Expand Down

0 comments on commit 4ad168e

Please sign in to comment.