Skip to content

Commit cff5253

Browse files
committed
Use typing type instead of builtin type for tuple
Due to python/mypy#9980
1 parent ba01150 commit cff5253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/metricrule/agent/mrrecorder.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
44
"""
55
import json
6-
from typing import MutableSequence, Optional, Union
6+
from typing import MutableSequence, Optional, Tuple, Union
77

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

1212
InstrumentMap = dict[MetricInstrumentSpec, Instrument]
13-
MutableLabelSequence = Optional[MutableSequence[tuple[tuple[str, str], ...]]]
13+
MutableLabelSequence = Optional[MutableSequence[Tuple[Tuple[str, str], ...]]]
1414

1515

1616
def log_request_metrics(config: SidecarConfig,

0 commit comments

Comments
 (0)