Skip to content

Commit

Permalink
fix(classes.py): remove usage of Self type hint for compatibility wit…
Browse files Browse the repository at this point in the history
…h older Python versions
  • Loading branch information
NodeJSmith committed Sep 24, 2024
1 parent 4151e45 commit d08c643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/otf_api/models/responses/classes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime
from enum import Enum
from typing import ClassVar, Self
from typing import ClassVar

from humanize import precisedelta
from pydantic import Field
Expand All @@ -18,7 +18,7 @@ class DoW(str, Enum):
sunday = "sunday"

@classmethod
def get_case_insensitive(cls, value: str) -> Self:
def get_case_insensitive(cls, value: str) -> "DoW":
lcase_to_actual = {item.value.lower(): item for item in cls}
return lcase_to_actual[value.lower()]

Expand Down

0 comments on commit d08c643

Please sign in to comment.