From a3926855062ed69e3f36b665a7df0c52da0c75ec Mon Sep 17 00:00:00 2001 From: rus07tam Date: Sun, 23 Nov 2025 09:16:25 +0000 Subject: [PATCH] fix: replace typing.NamedTuple with typing_extensions.NamedTuple to support multiple inheritance --- src/snakia/core/es/subscriber.py | 4 +++- src/snakia/core/rx/base_bindable.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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)