##// END OF EJS Templates
fix type_extensions
M Bussonnier -
Show More
@@ -243,7 +243,11 from traitlets.config.configurable import Configurable
243 import __main__
243 import __main__
244
244
245 from typing import cast
245 from typing import cast
246 from typing_extensions import TypedDict, NotRequired, Protocol, TypeAlias, TypeGuard
246
247 if sys.version_info < (3, 12):
248 from typing_extensions import TypedDict, NotRequired, Protocol, TypeAlias, TypeGuard
249 else:
250 from typing import TypedDict, NotRequired, Protocol, TypeAlias, TypeGuard
247
251
248
252
249 # skip module docstests
253 # skip module docstests
@@ -260,8 +264,6 except ImportError:
260 JEDI_INSTALLED = False
264 JEDI_INSTALLED = False
261
265
262
266
263 if GENERATING_DOCUMENTATION:
264 from typing import TypedDict
265
267
266 # -----------------------------------------------------------------------------
268 # -----------------------------------------------------------------------------
267 # Globals
269 # Globals
@@ -70,7 +70,6 doc = [
70 "sphinx-rtd-theme",
70 "sphinx-rtd-theme",
71 "sphinx>=1.3",
71 "sphinx>=1.3",
72 "sphinxcontrib-jquery",
72 "sphinxcontrib-jquery",
73 "typing_extensions",
74 ]
73 ]
75 kernel = [
74 kernel = [
76 "ipykernel",
75 "ipykernel",
General Comments 0
You need to be logged in to leave comments. Login now