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