Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement typing `Literal` support #1648
After #1640 stops the crashes, we'll have to add real
Related to #535, but this is a more specific case.
This is probably going to require some hefty changes to the TypeAnnotation stuff, since right now if a constant string is seen, we assume that it's supposed to be another type and parse it, but if it's a literal, we don't want to do that. (Maybe we shouldn't be doing that at all past a top level annotation being a string; need to read the spec.)
That and TypeAnnotation also relies on annotations be solely constructed with IPythonType.