forked from python/peps
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Literal types #1
Closed
Closed
Commits on Mar 14, 2019
-
Configuration menu - View commit details
-
Copy full SHA for c5b8a43 - Browse repository at this point
Copy the full SHA c5b8a43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c947fb - Browse repository at this point
Copy the full SHA 0c947fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ab90bcf - Browse repository at this point
Copy the full SHA ab90bcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 231c104 - Browse repository at this point
Copy the full SHA 231c104View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82105ba - Browse repository at this point
Copy the full SHA 82105baView commit details -
Configuration menu - View commit details
-
Copy full SHA for b467857 - Browse repository at this point
Copy the full SHA b467857View commit details -
General cleanup, discuss negative numbers and enums, allow nested lit…
…erals This commit: 1. Performs a bunch of cleanup suggested by Ivan 2. Adds a note clarifying that negative numbers are *allowed* 3. Adds a note reiterating that PEP 484 expects type checkers to understand enum values when performing type inference (and suggests this can be implemented by treating enums as roughly equal to the union of their types) 4. Moves "nested literals" into the "supported" category -- as I discovered in python/mypy#5947, implementing support for this is not as bad as I thought. 5. Adds an explicit warning to the "literals and generics" section. 6. Modifies some text to become more firm about disallowing 'Literal[Any]' and related constructs. 7. Deletes discussion about TypeScript's "index types" and "keyof" operator -- I mostly included that only because I got some feedback earlier to discuss TypeScript. It felt pretty shoehorned in, anyways.
Configuration menu - View commit details
-
Copy full SHA for 12c6f44 - Browse repository at this point
Copy the full SHA 12c6f44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 554a2df - Browse repository at this point
Copy the full SHA 554a2dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 003afd6 - Browse repository at this point
Copy the full SHA 003afd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8b6f16 - Browse repository at this point
Copy the full SHA a8b6f16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 088f492 - Browse repository at this point
Copy the full SHA 088f492View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79253dd - Browse repository at this point
Copy the full SHA 79253ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb9ada2 - Browse repository at this point
Copy the full SHA fb9ada2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ddaa0c - Browse repository at this point
Copy the full SHA 3ddaa0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8006152 - Browse repository at this point
Copy the full SHA 8006152View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6d7c15 - Browse repository at this point
Copy the full SHA e6d7c15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d46b3c - Browse repository at this point
Copy the full SHA 9d46b3cView commit details -
Apply suggestions from Jelle's code review
Co-Authored-By: Michael0x2a <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 32582e6 - Browse repository at this point
Copy the full SHA 32582e6View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.