10000 Import TypeAlias and Self from typing_extensions for python3.9 and 3.10 · python-kasa/python-kasa@1f5b382 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f5b382

Browse files
committed
Import TypeAlias and Self from typing_extensions for python3.9 and 3.10
1 parent 1ce05e5 commit 1f5b382

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

kasa/feature.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@
7171
from dataclasses import dataclass
7272
from enum import Enum, auto
7373
from functools import cached_property
74-
from typing import TYPE_CHECKING, Any, Callable, Literal, TypeAlias, get_type_hints
74+
from typing import TYPE_CHECKING, Any, Callable, Literal, get_type_hints
75+
76+
from typing_extensions import TypeAlias
7577

7678
from .exceptions import KasaException
7779

kasa/module.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@
4545
from typing import (
4646
TYPE_CHECKING,
4747
Final,
48-
Self,
4948
TypeVar,
5049
get_type_hints,
5150
)
5251

52+
from typing_extensions import Self
53+
5354
from .exceptions import KasaException
5455
from .feature import Feature, FeatureProperty
5556
from .modulemapping import ModuleName

0 commit comments

Comments
 (0)
0