Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix tiny mistake in warning message #779

Merged
merged 1 commit into from
Feb 19, 2025
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