Skip to content

Commit 89bc65d

Browse files
committed
Add subtype to AST node warning
2 parents 87f1ce3 + 09c7b82 commit 89bc65d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ The following configuration options are accepted:
9595
- `sphinx_autodoc_typehints.forward_reference`
9696
- `sphinx_autodoc_typehints.guarded_import`
9797
- `sphinx_autodoc_typehints.local_function`
98+
- `sphinx_autodoc_typehints.multiple_ast_nodes`
9899

99100
## How it works
100101

src/sphinx_autodoc_typehints/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ def _one_child(module: Module) -> stmt | None:
572572
name,
573573
len(children),
574574
type="sphinx_autodoc_typehints",
575+
subtype="multiple_ast_nodes",
575576
)
576577
return None
577578
return children[0]

0 commit comments

Comments
 (0)