-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into triple_quote
- Loading branch information
Showing
19 changed files
with
162 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
conformant = "Partial" | ||
notes = """ | ||
Rejects integer Literal with unary `+` operator. | ||
Does not reject tuple within Literal. | ||
""" | ||
output = """ | ||
literals_parameterizations.py:40: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:20: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:41: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:42: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:43: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:44: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:46: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:47: error: Parameter 1 of Literal[...] is invalid [valid-type] | ||
literals_parameterizations.py:45: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:47: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:48: error: Parameter 1 of Literal[...] is invalid [valid-type] | ||
literals_parameterizations.py:49: error: Parameter 1 of Literal[...] is invalid [valid-type] | ||
literals_parameterizations.py:50: error: Parameter 1 of Literal[...] cannot be of type "float" [valid-type] | ||
literals_parameterizations.py:51: error: Parameter 1 of Literal[...] cannot be of type "Any" [valid-type] | ||
literals_parameterizations.py:52: error: Parameter 1 of Literal[...] is invalid [valid-type] | ||
literals_parameterizations.py:55: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:58: error: Literal[...] must have at least one parameter [valid-type] | ||
literals_parameterizations.py:59: error: Parameter 1 of Literal[...] is invalid [valid-type] | ||
literals_parameterizations.py:63: error: Incompatible types in assignment (expression has type "Literal[Color.RED]", variable has type "Literal['Color.RED']") [assignment] | ||
literals_parameterizations.py:50: error: Parameter 1 of Literal[...] is invalid [valid-type] | ||
literals_parameterizations.py:51: error: Parameter 1 of Literal[...] cannot be of type "float" [valid-type] | ||
literals_parameterizations.py:52: error: Parameter 1 of Literal[...] cannot be of type "Any" [valid-type] | ||
literals_parameterizations.py:53: error: Parameter 1 of Literal[...] is invalid [valid-type] | ||
literals_parameterizations.py:56: error: Invalid type: Literal[...] cannot contain arbitrary expressions [valid-type] | ||
literals_parameterizations.py:60: error: Literal[...] must have at least one parameter [valid-type] | ||
literals_parameterizations.py:61: error: Parameter 1 of Literal[...] is invalid [valid-type] | ||
literals_parameterizations.py:65: error: Incompatible types in assignment (expression has type "Literal[Color.RED]", variable has type "Literal['Color.RED']") [assignment] | ||
""" |
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
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
Oops, something went wrong.