From 5d2640ec610a58fefd1ebe50b1faf94c47277db4 Mon Sep 17 00:00:00 2001 From: jo Date: Tue, 22 Oct 2024 15:47:04 +0200 Subject: [PATCH] refactor: upgrade code --- hcloud/metrics/domain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hcloud/metrics/domain.py b/hcloud/metrics/domain.py index cf65571..c7e1f55 100644 --- a/hcloud/metrics/domain.py +++ b/hcloud/metrics/domain.py @@ -1,13 +1,13 @@ from __future__ import annotations from datetime import datetime -from typing import Dict, List, Literal, Tuple +from typing import Literal from dateutil.parser import isoparse from ..core import BaseDomain -TimeSeries = Dict[str, Dict[Literal["values"], List[Tuple[float, str]]]] +TimeSeries = dict[str, dict[Literal["values"], list[tuple[float, str]]]] class Metrics(BaseDomain):