-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit f8704ec
Revert "ENH: CLI env runs with typing.TYPE_CHECKING = True"
This reverts commit 2fc6315.
It appears things begin to fall appart. This line would normally
be hidden by `if TYPE_CHECKING:`, because type checkers don't
fail with circular imports!
Refs: #460
```
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.13/x64/bin/pdoc3", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/runner/work/pdoc/pdoc/pdoc/cli.py", line 559, in main
modules = [pdoc.Module(module, docfilter=docfilter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/pdoc/pdoc/pdoc/cli.py", line 559, in <listcomp>
modules = [pdoc.Module(module, docfilter=docfilter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/pdoc/pdoc/pdoc/__init__.py", line 677, in __init__
super().__init__(module.__name__, self, module)
File "/home/runner/work/pdoc/pdoc/pdoc/__init__.py", line 547, in __init__
from pdoc.html_helpers import _ToMarkdown
File "/home/runner/work/pdoc/pdoc/pdoc/html_helpers.py", line 16, in <module>
import markdown
File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/markdown/__init__.py", line 42, in <module>
from .core import Markdown, markdown, markdownFromFile
File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/markdown/core.py", line 27, in <module>
from . import util
File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/markdown/util.py", line 35, in <module>
from markdown import Markdown
ImportError: cannot import name 'Markdown' from partially initialized module 'markdown' (most likely due to a circular import) (/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/markdown/__init__.py)
```1 parent 2fc6315 commit f8704ec
1 file changed
+0
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | - | ||
15 | 14 |
| |
16 | 15 |
| |
17 | 16 |
| |
| |||
454 | 453 |
| |
455 | 454 |
| |
456 | 455 |
| |
457 | - | ||
458 | - | ||
459 | 456 |
| |
460 | 457 |
| |
461 | 458 |
| |
|
0 commit comments