diff --git a/src/snakia/core/es/subscriber.py b/src/snakia/core/es/subscriber.py index e8be622..2044129 100644 --- a/src/snakia/core/es/subscriber.py +++ b/src/snakia/core/es/subscriber.py @@ -1,6 +1,8 @@ from __future__ import annotations -from typing import Generic, NamedTuple, TypeVar +from typing import Generic, TypeVar + +from typing_extensions import NamedTuple from .event import Event from .filter import Filter diff --git a/src/snakia/core/rx/base_bindable.py b/src/snakia/core/rx/base_bindable.py index 830713c..35b3415 100644 --- a/src/snakia/core/rx/base_bindable.py +++ b/src/snakia/core/rx/base_bindable.py @@ -1,4 +1,6 @@ -from typing import Generic, NamedTuple, Protocol, TypeVar +from typing import Generic, Protocol, TypeVar + +from typing_extensions import NamedTuple T = TypeVar("T") R_co = TypeVar("R_co", covariant=True)