Skip to content

Commit 28bef95

Browse files
committed
Use typing_extensions.Self to support <3.11
1 parent e545371 commit 28bef95

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tibiapy/enums.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
from __future__ import annotations
33

44
from enum import Enum, Flag, IntEnum
5-
from typing import Any, Optional, Self, TYPE_CHECKING
5+
from typing import Any, Optional, TYPE_CHECKING
66

77
from pydantic_core import core_schema
8+
from typing_extensions import Self
89

910
from tibiapy.errors import EnumValueError
1011
from tibiapy.utils import try_enum

tibiapy/models/tibia_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""Models used to wrap responses from Tibia.com."""
22
import datetime
3-
from typing import Generic, Self, TypeVar
3+
from typing import Generic, TypeVar
44

55
from pydantic import computed_field
6+
from typing_extensions import Self
67

78
from tibiapy.models.base import BaseModel
89

0 commit comments

Comments
 (0)