Show More
@@ -167,7 +167,6 b' from typing import (' | |||
|
167 | 167 | TYPE_CHECKING, |
|
168 | 168 | Set, |
|
169 | 169 | ) |
|
170 | from typing_extensions import TypedDict, NotRequired | |
|
171 | 170 | |
|
172 | 171 | from IPython.core.error import TryNext |
|
173 | 172 | from IPython.core.inputtransformer2 import ESC_MAGIC |
@@ -208,11 +207,14 b' except ImportError:' | |||
|
208 | 207 | |
|
209 | 208 | if TYPE_CHECKING: |
|
210 | 209 | from typing import cast |
|
210 | from typing_extensions import TypedDict, NotRequired | |
|
211 | 211 | else: |
|
212 | 212 | |
|
213 | 213 | def cast(obj, _type): |
|
214 | 214 | return obj |
|
215 | 215 | |
|
216 | TypedDict = Dict | |
|
217 | NotRequired = Tuple | |
|
216 | 218 | |
|
217 | 219 | # ----------------------------------------------------------------------------- |
|
218 | 220 | # Globals |
General Comments 0
You need to be logged in to leave comments.
Login now