fix: replace typing.NamedTuple with typing_extensions.NamedTuple to support multiple inheritance
This commit is contained in:
parent
9840c1706e
commit
a392685506
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue