Skip to content

Commit

Permalink
Use typing type instead of builtin type for tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
JishnuM committed Jun 17, 2021
1 parent ba01150 commit cff5253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metricrule/agent/mrrecorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"""
import json
from typing import MutableSequence, Optional, Union
from typing import MutableSequence, Optional, Tuple, Union

from ..config_gen.metric_configuration_pb2 import SidecarConfig # pylint: disable=relative-beyond-top-level
from .mrmetric import get_context_labels, get_metric_instances, MetricContext, MetricInstrumentSpec
from .mrotel import Instrument

InstrumentMap = dict[MetricInstrumentSpec, Instrument]
MutableLabelSequence = Optional[MutableSequence[tuple[tuple[str, str], ...]]]
MutableLabelSequence = Optional[MutableSequence[Tuple[Tuple[str, str], ...]]]


def log_request_metrics(config: SidecarConfig,
Expand Down

0 comments on commit cff5253

Please sign in to comment.