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 |
General Comments 0
You need to be logged in to leave comments.
Login now