Precisely annotating ast.Constant.value
#2014
Replies: 2 comments
-
One issue here is that at runtime, these classes accept anything, and a lot of helpers like However, I'd focus on what types Python's parser can produce; i.e., what you can get back from Then the answer is |
Beta Was this translation helpful? Give feedback.
-
I feel like the annotation should reflect the valid inputs to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ScalarOrContainerOfScalar
correctly represent the nesting?Beta Was this translation helpful? Give feedback.
All reactions