From b10b89f24a974314fbe23fef633ed11592ba5e47 Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Sun, 27 Aug 2023 20:51:20 +0200 Subject: [PATCH] style(models): improve type hint --- peprock/models/measurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peprock/models/measurement.py b/peprock/models/measurement.py index 8b9b698..1f57b1a 100644 --- a/peprock/models/measurement.py +++ b/peprock/models/measurement.py @@ -92,7 +92,7 @@ def __str__(self: Self) -> str: @classmethod @functools.cache - def _init_field_names(cls: type[Measurement]) -> tuple[str, ...]: + def _init_field_names(cls: type[Self]) -> tuple[str, ...]: return tuple(field.name for field in dataclasses.fields(cls) if field.init) def replace(self: Self, **changes: typing.Any) -> Self: