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
if TYPE_CHECKING
I'm trying to use sphinx-autodoc-typehints to work around sphinx-doc/sphinx#10785.
sphinx-autodoc-typehints
However, I need to use an if TYPE_CHECKING block to resolve an unavoidable circular import issue:
https://github.com/simplistix/sybil/blob/f6d8772a3f0b32c79a0b4cdd83d21098cb0721a7/sybil/typing.py#L1-L14
However, now I get:
WARNING: Cannot resolve forward reference in type annotations of "sybil.Sybil": name 'sybil' is not defined
...because it doesn't appear this package is considering imports within the if TYPE_CHECKING.
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #22?
Sorry, something went wrong.
Yep
No branches or pull requests
I'm trying to use
sphinx-autodoc-typehints
to work around sphinx-doc/sphinx#10785.However, I need to use an
if TYPE_CHECKING
block to resolve an unavoidable circular import issue:https://github.com/simplistix/sybil/blob/f6d8772a3f0b32c79a0b4cdd83d21098cb0721a7/sybil/typing.py#L1-L14
However, now I get:
...because it doesn't appear this package is considering imports within the
if TYPE_CHECKING
.The text was updated successfully, but these errors were encountered: