Skip to content

Commit

Permalink
Use typing_extensions.Self to support <3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Galarzaa90 committed Mar 31, 2024
1 parent e545371 commit 28bef95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tibiapy/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
from __future__ import annotations

from enum import Enum, Flag, IntEnum
from typing import Any, Optional, Self, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING

from pydantic_core import core_schema
from typing_extensions import Self

from tibiapy.errors import EnumValueError
from tibiapy.utils import try_enum
Expand Down
3 changes: 2 additions & 1 deletion tibiapy/models/tibia_response.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Models used to wrap responses from Tibia.com."""
import datetime
from typing import Generic, Self, TypeVar
from typing import Generic, TypeVar

from pydantic import computed_field
from typing_extensions import Self

from tibiapy.models.base import BaseModel

Expand Down

0 comments on commit 28bef95

Please sign in to comment.