mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-108455: peg_generator: enable mypy's --warn-unreachable setting and redundant-expr error code (#109160)
This commit is contained in:
parent
15d659f929
commit
697c9dcf8f
3 changed files with 13 additions and 9 deletions
|
|
@ -66,6 +66,4 @@ def ast_dump(
|
|||
|
||||
if all(cls.__name__ != "AST" for cls in node.__class__.__mro__):
|
||||
raise TypeError("expected AST, got %r" % node.__class__.__name__)
|
||||
if indent is not None and not isinstance(indent, str):
|
||||
indent = " " * indent
|
||||
return _format(node)[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue