File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ license = {file = "LICENSE"}
1111dynamic = [" version" , " description" ]
1212dependencies = [
1313 " ipywidgets" ,
14- " typing_extensions >= 4.1.1 " ,
14+ " typing_extensions >= 3.7.0 " ,
1515]
1616
1717classifiers = [
Original file line number Diff line number Diff line change 4040import ipywidgets
4141import ipywidgets as widgets
4242import traitlets
43- import typing_extensions
4443from typing_extensions import Literal , Protocol
4544
4645import reacton .logging # noqa: F401 # has sidefx
@@ -87,7 +86,12 @@ def get():
8786V = TypeVar ("V" ) # used for value type of widget
8887V2 = TypeVar ("V2" ) # used for value type of widget
8988E = TypeVar ("E" ) # used for elements
90- P = typing_extensions .ParamSpec ("P" )
89+
90+ try :
91+ from typing_extensions import ParamSpec
92+ P = ParamSpec ("P" )
93+ except ImportError :
94+ P = ...
9195
9296WidgetOrList = Union [widgets .Widget , List [widgets .Widget ]]
9397EffectCleanupCallable = Callable [[], None ]
You can’t perform that action at this time.
0 commit comments