You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because this is within a typing-enabled block, it should be ignored for "normal" execution.
Only typing parsers/linters must consider those imports, which I believe arparse shouldn't consider.
Note, this might be caused by interactions with package sphinx_autodoc_typehints which uses those typings during documentation generation. I'm not familiar enough with the internals of sphinx building to know if sphinx-argparse could disable typings only for its own context build.
The text was updated successfully, but these errors were encountered:
When building docs with an
sphinx-argparse
directive, the following error occurs.where my directive is as follows:
The encountered error happens due to a
typing
import.In the
weaver.cli
module, there is this in the imports:Because this is within a typing-enabled block, it should be ignored for "normal" execution.
Only typing parsers/linters must consider those imports, which I believe arparse shouldn't consider.
Note, this might be caused by interactions with package
sphinx_autodoc_typehints
which uses those typings during documentation generation. I'm not familiar enough with the internals of sphinx building to know ifsphinx-argparse
could disable typings only for its own context build.The text was updated successfully, but these errors were encountered: