-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
TYPE_CHECKING
warnings when subclassing textual
objects
#695
Comments
We probably need to get https://github.com/python/typeshed/tree/main/stdlib/_typeshed into pdoc for this somehow. |
From my understanding, that requires |
We already try to evaluate the TYPE_CHECKING blocks, this is where the error is coming from. We're missing the _typeshed package import in those sections |
I meant to suggest that maybe |
pdoc does do that, in a way we already try to set |
More specifically: I think we need to vendor the _typeshed from the link above, and make it available as _typeshed during evaluation. |
It turns out that vendoring isn't easy, |
Problem Description
I am seeing the same problem reported in #648 but when dealing with classes from the
textual
package. I am using the latest pdoc (14.5.0) so the fix from #649 does not appear to have resolved this for all potential third-party packages.I am not sure what could be different about
textual
that would potentially cause this behavior to differ from the other case.Steps to reproduce the behavior:
pdoc==14.5.0
andtextual==0.63.5
.pdoc-bug-695.py
:pdoc pdoc-bug-695.py
and observe the warnings upon loading the HTML page:System Information
Paste the output of "pdoc --version" here.
The text was updated successfully, but these errors were encountered: