-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check
PY_310_MIN
instead of PY_39_MIN
Python 3.9.1 changed the `type()` of `Literal` instances to be `_LiteralGenericAlias` instead of `_GenericAlias`. `is_literal_type()` assumed the change took place in Python 3.9.0 and checked for it accordingly. Because the assumption was incorrect, it failed to detect `Literal` types in Python versions [3.9.0, 3.9.1). This commit changes `is_literal_type()` to check `PY_310_MIN` instead of `PY_39_MIN` to fix the issue.
- Loading branch information
Showing
2 changed files
with
5 additions
and
3 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