Commit 0f6c28b
committed
Fix docs build: resolve InteractiveShell forward reference in KernelMagics
sphinx_autodoc_typehints cannot resolve inherited type annotations from
parent classes in a different module. KernelMagics inherits shell: InteractiveShell
from IPython's Magics, but sphinx evaluates it in the parent module's namespace.
Re-declare the annotation in KernelMagics so sphinx resolves it in zmqshell.py
where InteractiveShell is imported.1 parent 770afbe commit 0f6c28b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
| |||
0 commit comments