Skip to content

Commit

Permalink
Add type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Mar 25, 2022
1 parent 64a25a0 commit 750db56
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@

from logging import getLogger
from threading import Lock
from typing import TYPE_CHECKING, Iterable
from typing import TYPE_CHECKING, Dict, Iterable

from opentelemetry.sdk._metrics.aggregation import (
_Aggregation,
_convert_aggregation_temporality,
_PointVarT,
)
from opentelemetry.sdk._metrics.measurement import Measurement
from opentelemetry.sdk._metrics.point import AggregationTemporality, Metric
Expand All @@ -41,8 +43,8 @@ def __init__(
self._view = view
self._instrument = instrument
self._sdk_config = sdk_config
self._attributes_aggregation = {}
self._attributes_previous_point = {}
self._attributes_aggregation: Dict[frozenset, _Aggregation] = {}
self._attributes_previous_point: Dict[frozenset, _PointVarT] = {}
self._lock = Lock()

# pylint: disable=protected-access
Expand Down

0 comments on commit 750db56

Please sign in to comment.