Skip to content

Commit 6fab86d

Browse files
committed
fix: from typing_extensions import Self - compatible to 3.10
1 parent 3625640 commit 6fab86d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ghostos/abcd/concepts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from __future__ import annotations
22
from typing import (
33
Type, Generic, Protocol, ClassVar, TypeVar, Callable,
4-
Tuple, Optional, Iterable, List, Self, Union, Dict, Any
4+
Tuple, Optional, Iterable, List, Union, Dict, Any
55
)
6+
from typing_extensions import Self
67

78
from abc import ABC, abstractmethod
89
from ghostos.identifier import Identical

ghostos/core/messages/payload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from typing import ClassVar, Optional, Protocol, Dict, Union, Self
1+
from typing import ClassVar, Optional, Protocol, Dict, Union
2+
from typing_extensions import Self
23
from abc import ABC
34
from pydantic import BaseModel
45
from .message import Message

0 commit comments

Comments
 (0)