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
Thanks for this library! Hopefully this is an easy one: Forward references inside NamedTuples do not get resolved and result in a warning
from __future__ import annotations from typing import NamedTuple class Foo(NamedTuple): b: Bar class Bar: pass
Results in:
Warn: Error parsing type annotation ForwardRef('Bar') for bug.Foo.__init__. Import of Bar failed: name 'Bar' is not defined
It appears to just be NamedTuples -- regular classes (and dataclasses) do not produce this warning.
pdoc: 15.0.1 Python: 3.10.8 Platform: Linux-5.15.0-125-generic-x86_64-with-glibc2.31
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem Description
Thanks for this library! Hopefully this is an easy one: Forward references inside NamedTuples do not get resolved and result in a warning
Steps to reproduce the behavior:
Results in:
It appears to just be NamedTuples -- regular classes (and dataclasses) do not produce this warning.
System Information
The text was updated successfully, but these errors were encountered: