Skip to content

Commit

Permalink
Make compatible with sphinx-autodoc-typehints
Browse files Browse the repository at this point in the history
* Closes: useblocks#1370
  • Loading branch information
marten-de-vries committed Dec 13, 2024
1 parent 4e52ed2 commit 82792ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sphinx_needs/directives/need.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class NeedDirective(SphinxDirective):

@measure_time("need")
def run(self) -> Sequence[nodes.Node]:
file = self.get_source_info()[0]
if not file:
return []
needs_config = NeedsSphinxConfig(self.env.config)

delete_opt = self.options.get("delete")
Expand Down

0 comments on commit 82792ce

Please sign in to comment.