We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ef70b commit 985357eCopy full SHA for 985357e
tests/utilities/test_build_ast_schema.py
@@ -62,7 +62,11 @@ def print_ast_node(obj: TypeWithAstNode) -> str:
62
63
64
def print_all_ast_nodes(obj: TypeWithExtensionAstNodes) -> str:
65
- assert obj is not None and obj.extension_ast_nodes is not None
+ assert (
66
+ obj is not None
67
+ and obj.ast_node is not None
68
+ and obj.extension_ast_nodes is not None
69
+ )
70
return print_ast(DocumentNode(definitions=[obj.ast_node, *obj.extension_ast_nodes]))
71
72
0 commit comments