From c7c7fae41ab5f60edce7ed924c8a4f8af47dfd2d Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 4 Aug 2023 17:51:58 +0200 Subject: [PATCH] chore: fix mypy --- hcloud/core/domain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hcloud/core/domain.py b/hcloud/core/domain.py index 3c3a8db..d57d52e 100644 --- a/hcloud/core/domain.py +++ b/hcloud/core/domain.py @@ -1,6 +1,7 @@ from __future__ import annotations from datetime import datetime +from typing import Any from .client import BoundModelBase @@ -23,7 +24,7 @@ def __repr__(self) -> str: return f"{self.__class__.__qualname__}({', '.join(kwargs)})" -def _make_serializable(value) -> dict | list | str | int | float: +def _make_serializable(value: Any) -> dict | list | str | int | float: if isinstance(value, BoundModelBase): value = value.data_model