Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of long numbers, strings and bytes (#351)
Currently, we allow this: ```py from typing_extensions import Literal foo: Literal[1000000000000000000000000000000000000000] ``` But we disallow this: ```python from typing_extensions import Final foo: Final = 1000000000000000000000000000000000000000 ``` This seems pretty inconsistent; the rationale for disallowing the latter applies equally well to the former. Fixing this inconsistency also allows us to clean up the code somewhat.
- Loading branch information
1 parent
69df360
commit f611897
Showing
5 changed files
with
91 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters