Skip to content

Commit

Permalink
style(models): improve type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-keller committed Aug 27, 2023
1 parent 8701ea1 commit b10b89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peprock/models/measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b10b89f

Please sign in to comment.