Skip to content

Commit

Permalink
apply tox -e ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
msoltysik committed Oct 16, 2024
1 parent d84bf56 commit 7b20bf8
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,27 +247,27 @@ def __init__(
if typ is Counter:
self._instrument_class_temporality[_Counter] = temporality
elif typ is UpDownCounter:
self._instrument_class_temporality[
_UpDownCounter
] = temporality
self._instrument_class_temporality[_UpDownCounter] = (
temporality
)
elif typ is Histogram:
self._instrument_class_temporality[
_Histogram
] = temporality
self._instrument_class_temporality[_Histogram] = (
temporality
)
elif typ is Gauge:
self._instrument_class_temporality[_Gauge] = temporality
elif typ is ObservableCounter:
self._instrument_class_temporality[
_ObservableCounter
] = temporality
self._instrument_class_temporality[_ObservableCounter] = (
temporality
)
elif typ is ObservableUpDownCounter:
self._instrument_class_temporality[
_ObservableUpDownCounter
] = temporality
elif typ is ObservableGauge:
self._instrument_class_temporality[
_ObservableGauge
] = temporality
self._instrument_class_temporality[_ObservableGauge] = (
temporality
)
else:
raise Exception(f"Invalid instrument class found {typ}")

Expand All @@ -287,27 +287,27 @@ def __init__(
if typ is Counter:
self._instrument_class_aggregation[_Counter] = aggregation
elif typ is UpDownCounter:
self._instrument_class_aggregation[
_UpDownCounter
] = aggregation
self._instrument_class_aggregation[_UpDownCounter] = (
aggregation
)
elif typ is Histogram:
self._instrument_class_aggregation[
_Histogram
] = aggregation
self._instrument_class_aggregation[_Histogram] = (
aggregation
)
elif typ is Gauge:
self._instrument_class_aggregation[_Gauge] = aggregation
elif typ is ObservableCounter:
self._instrument_class_aggregation[
_ObservableCounter
] = aggregation
self._instrument_class_aggregation[_ObservableCounter] = (
aggregation
)
elif typ is ObservableUpDownCounter:
self._instrument_class_aggregation[
_ObservableUpDownCounter
] = aggregation
elif typ is ObservableGauge:
self._instrument_class_aggregation[
_ObservableGauge
] = aggregation
self._instrument_class_aggregation[_ObservableGauge] = (
aggregation
)
else:
raise Exception(f"Invalid instrument class found {typ}")

Expand Down

0 comments on commit 7b20bf8

Please sign in to comment.