Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pdoc/doc_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def safe_eval_type(
f"Error parsing type annotation {t} for {fullname}: {e}. "
f"You are likely attempting to use Python 3.10 syntax (PEP 604 union types) with an older Python "
f"release. `X | Y`-style type annotations are invalid syntax on Python {py_ver}, which is what your "
f"pdoc instance is using. `from future import __annotations__` (PEP 563) postpones evaluation of "
f"pdoc instance is using. `from __future__ import annotations` (PEP 563) postpones evaluation of "
f"annotations, which is why your program won't crash right away. However, pdoc needs to evaluate your "
f"type annotations and is unable to do so on Python {py_ver}. To fix this issue, either invoke pdoc "
f"from Python 3.10+, or switch to `typing.Union[]` syntax."
Expand Down