We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seems like pdoc can't handle references to nested class when annotations feature is enabled.
from __future__ import annotations class Foo: class Bar: pass def __init__(self, bar: Bar): self.bar = bar
pdoc module.py
Warn: Error parsing type annotation Bar for module.Foo.__init__. Import of Bar failed: name 'Bar' is not defined
pdoc: 12.2.0 Python: 3.10.5 Platform: Linux-5.18.13-200.fc36.x86_64-x86_64-with-glibc2.35
The text was updated successfully, but these errors were encountered:
resolve type annotations for nested classes, fix mitmproxy#440
ff702dc
Thanks for the concise description! Fixed in #441.
Sorry, something went wrong.
e2b5930
No branches or pull requests
Problem Description
Seems like pdoc can't handle references to nested class when annotations feature is enabled.
Steps to reproduce the behavior:
pdoc module.py
Warn: Error parsing type annotation Bar for module.Foo.__init__. Import of Bar failed: name 'Bar' is not defined
System Information
pdoc: 12.2.0
Python: 3.10.5
Platform: Linux-5.18.13-200.fc36.x86_64-x86_64-with-glibc2.35
The text was updated successfully, but these errors were encountered: