|
1 | | -conformant = "Pass" |
| 1 | +conformant = "Partial" |
2 | 2 | notes = """ |
3 | 3 | Constraint solver doesn't find common type for two signatures captured by a single ParamSpec (allowed). |
| 4 | +parameter specification variance not supported |
4 | 5 | """ |
5 | 6 | output = """ |
6 | 7 | generics_paramspec_semantics.py:26:6 - error: Expected 2 more positional arguments (reportCallIssue) |
@@ -30,7 +31,41 @@ generics_paramspec_semantics.py:132:2 - error: Argument of type "(*, x: int) -> |
30 | 31 | generics_paramspec_semantics.py:137:2 - error: Argument of type "(**kwargs: int) -> int" cannot be assigned to parameter "x" of type "(int, **P@expects_int_first) -> int" in function "expects_int_first" |
31 | 32 | Type "(**kwargs: int) -> int" is not assignable to type "(int, **P@expects_int_first) -> int" |
32 | 33 | Function accepts too many positional parameters; expected 0 but received 1 (reportArgumentType) |
| 34 | +generics_paramspec_semantics.py:150:39 - error: Type "ContravariantParamSpec[(object)]" is not assignable to declared type "ContravariantParamSpec[(int)]" |
| 35 | + "ContravariantParamSpec[(object)]" is not assignable to "ContravariantParamSpec[(int)]" |
| 36 | + Type parameter "InP@ContravariantParamSpec" is invariant, but "(object)" is not the same as "(int)" (reportAssignmentType) |
| 37 | +generics_paramspec_semantics.py:151:10 - error: Type "ContravariantParamSpec[(int)]" is not assignable to declared type "ContravariantParamSpec[(object)]" |
| 38 | + "ContravariantParamSpec[(int)]" is not assignable to "ContravariantParamSpec[(object)]" |
| 39 | + Type parameter "InP@ContravariantParamSpec" is invariant, but "(int)" is not the same as "(object)" (reportAssignmentType) |
| 40 | +generics_paramspec_semantics.py:158:39 - error: Type "CovariantParamSpec[(int)]" is not assignable to declared type "CovariantParamSpec[(object)]" |
| 41 | + "CovariantParamSpec[(int)]" is not assignable to "CovariantParamSpec[(object)]" |
| 42 | + Type parameter "OutP@CovariantParamSpec" is invariant, but "(int)" is not the same as "(object)" (reportAssignmentType) |
| 43 | +generics_paramspec_semantics.py:159:11 - error: Type "CovariantParamSpec[(object)]" is not assignable to declared type "CovariantParamSpec[(int)]" |
| 44 | + "CovariantParamSpec[(object)]" is not assignable to "CovariantParamSpec[(int)]" |
| 45 | + Type parameter "OutP@CovariantParamSpec" is invariant, but "(object)" is not the same as "(int)" (reportAssignmentType) |
| 46 | +generics_paramspec_semantics.py:161:24 - error: "contravariant" is unknown parameter to ParamSpec (reportGeneralTypeIssues) |
| 47 | +generics_paramspec_semantics.py:168:46 - error: Type "ContravariantParamSpecOld[(object)]" is not assignable to declared type "ContravariantParamSpecOld[(int)]" |
| 48 | + "ContravariantParamSpecOld[(object)]" is not assignable to "ContravariantParamSpecOld[(int)]" |
| 49 | + Type parameter "InP@ContravariantParamSpecOld" is invariant, but "(object)" is not the same as "(int)" (reportAssignmentType) |
| 50 | +generics_paramspec_semantics.py:169:14 - error: Type "ContravariantParamSpecOld[(int)]" is not assignable to declared type "ContravariantParamSpecOld[(object)]" |
| 51 | + "ContravariantParamSpecOld[(int)]" is not assignable to "ContravariantParamSpecOld[(object)]" |
| 52 | + Type parameter "InP@ContravariantParamSpecOld" is invariant, but "(int)" is not the same as "(object)" (reportAssignmentType) |
| 53 | +generics_paramspec_semantics.py:171:26 - error: "covariant" is unknown parameter to ParamSpec (reportGeneralTypeIssues) |
| 54 | +generics_paramspec_semantics.py:178:50 - error: Type "ContravariantParamSpecOld[(int)]" is not assignable to declared type "ContravariantParamSpecOld[(object)]" |
| 55 | + "ContravariantParamSpecOld[(int)]" is not assignable to "ContravariantParamSpecOld[(object)]" |
| 56 | + Type parameter "InP@ContravariantParamSpecOld" is invariant, but "(int)" is not the same as "(object)" (reportAssignmentType) |
| 57 | +generics_paramspec_semantics.py:179:15 - error: Type "ContravariantParamSpecOld[(object)]" is not assignable to declared type "ContravariantParamSpecOld[(int)]" |
| 58 | + "ContravariantParamSpecOld[(object)]" is not assignable to "ContravariantParamSpecOld[(int)]" |
| 59 | + Type parameter "InP@ContravariantParamSpecOld" is invariant, but "(object)" is not the same as "(int)" (reportAssignmentType) |
33 | 60 | """ |
34 | | -conformance_automated = "Pass" |
| 61 | +conformance_automated = "Fail" |
35 | 62 | errors_diff = """ |
| 63 | +Line 165: Expected 1 errors |
| 64 | +Line 174: Expected 1 errors |
| 65 | +Line 150: Unexpected errors ['generics_paramspec_semantics.py:150:39 - error: Type "ContravariantParamSpec[(object)]" is not assignable to declared type "ContravariantParamSpec[(int)]"'] |
| 66 | +Line 158: Unexpected errors ['generics_paramspec_semantics.py:158:39 - error: Type "CovariantParamSpec[(int)]" is not assignable to declared type "CovariantParamSpec[(object)]"'] |
| 67 | +Line 161: Unexpected errors ['generics_paramspec_semantics.py:161:24 - error: "contravariant" is unknown parameter to ParamSpec (reportGeneralTypeIssues)'] |
| 68 | +Line 168: Unexpected errors ['generics_paramspec_semantics.py:168:46 - error: Type "ContravariantParamSpecOld[(object)]" is not assignable to declared type "ContravariantParamSpecOld[(int)]"'] |
| 69 | +Line 171: Unexpected errors ['generics_paramspec_semantics.py:171:26 - error: "covariant" is unknown parameter to ParamSpec (reportGeneralTypeIssues)'] |
| 70 | +Line 178: Unexpected errors ['generics_paramspec_semantics.py:178:50 - error: Type "ContravariantParamSpecOld[(int)]" is not assignable to declared type "ContravariantParamSpecOld[(object)]"'] |
36 | 71 | """ |
0 commit comments