We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 131580c commit 5250881Copy full SHA for 5250881
notebooks/shared/bookutils/__init__.py
@@ -164,9 +164,10 @@ def show_ast(tree: AST) -> Optional[Any]:
164
print(ast.dump(tree))
165
return None
166
167
- # Note: For Python >=3.12, this needs the patched `showast2` module
168
- # e.g. git+https://github.com/andreas-zeller/show_ast.git@andreas
169
- import showast2
+ # For Python >=3.12,
+ # we need the patched `showast2` module instead of `showast`
+ # see git+https://github.com/andreas-zeller/show_ast.git@andreas
170
+ import showast2 # type: ignore
171
return showast2.show_ast(tree)
172
173
# Escaping unicode characters into ASCII for user-facing strings
0 commit comments