Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
For example:
import asttree = ast.parse("from x import y")tree.body[0].level = Noneast.unparse(tree) # raisesThis is very similar tohttps://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.