-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
For example:
import ast
tree = ast.parse("from x import y")
tree.body[0].level = None
ast.unparse(tree) # raises
This is very similar to https://bugs.python.org/issue46289 and #30467 cc @isidentical
Note the compiler does seem to allow it, but it's always an int in practice and documented as such
Discovered in typeshed.
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error