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 |
0 replies
|
I feel like the annotation should reflect the valid inputs to |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
ScalarOrContainerOfScalarcorrectly represent the nesting?All reactions