|
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 | 4 | """ |
@@ -30,7 +30,33 @@ generics_paramspec_semantics.py:132:2 - error: Argument of type "(*, x: int) -> |
30 | 30 | 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 | 31 | Type "(**kwargs: int) -> int" is not assignable to type "(int, **P@expects_int_first) -> int" |
32 | 32 | Function accepts too many positional parameters; expected 0 but received 1 (reportArgumentType) |
| 33 | +generics_paramspec_semantics.py:150:39 - error: Type "ContravariantParamSpec[(object)]" is not assignable to declared type "ContravariantParamSpec[(int)]" |
| 34 | + "ContravariantParamSpec[(object)]" is not assignable to "ContravariantParamSpec[(int)]" |
| 35 | + Type parameter "InP@ContravariantParamSpec" is invariant, but "(object)" is not the same as "(int)" (reportAssignmentType) |
| 36 | +generics_paramspec_semantics.py:158:39 - error: Type "CovariantParamSpec[(int)]" is not assignable to declared type "CovariantParamSpec[(object)]" |
| 37 | + "CovariantParamSpec[(int)]" is not assignable to "CovariantParamSpec[(object)]" |
| 38 | + Type parameter "OutP@CovariantParamSpec" is invariant, but "(int)" is not the same as "(object)" (reportAssignmentType) |
| 39 | +generics_paramspec_semantics.py:161:24 - error: "contravariant" is unknown parameter to ParamSpec (reportGeneralTypeIssues) |
| 40 | +generics_paramspec_semantics.py:167:46 - error: Type "ContravariantParamSpecOld[(object)]" is not assignable to declared type "ContravariantParamSpecOld[(int)]" |
| 41 | + "ContravariantParamSpecOld[(object)]" is not assignable to "ContravariantParamSpecOld[(int)]" |
| 42 | + Type parameter "InP@ContravariantParamSpecOld" is invariant, but "(object)" is not the same as "(int)" (reportAssignmentType) |
| 43 | +generics_paramspec_semantics.py:170:26 - error: "covariant" is unknown parameter to ParamSpec (reportGeneralTypeIssues) |
| 44 | +generics_paramspec_semantics.py:176:50 - error: Type "ContravariantParamSpecOld[(int)]" is not assignable to declared type "ContravariantParamSpecOld[(object)]" |
| 45 | + "ContravariantParamSpecOld[(int)]" is not assignable to "ContravariantParamSpecOld[(object)]" |
| 46 | + Type parameter "InP@ContravariantParamSpecOld" is invariant, but "(int)" is not the same as "(object)" (reportAssignmentType) |
33 | 47 | """ |
34 | | -conformance_automated = "Pass" |
| 48 | +conformance_automated = "Fail" |
35 | 49 | errors_diff = """ |
| 50 | +Line 151: Expected 1 errors |
| 51 | +Line 159: Expected 1 errors |
| 52 | +Line 164: Expected 1 errors |
| 53 | +Line 168: Expected 1 errors |
| 54 | +Line 173: Expected 1 errors |
| 55 | +Line 177: Expected 1 errors |
| 56 | +Line 150: Unexpected errors ['generics_paramspec_semantics.py:150:39 - error: Type "ContravariantParamSpec[(object)]" is not assignable to declared type "ContravariantParamSpec[(int)]"'] |
| 57 | +Line 158: Unexpected errors ['generics_paramspec_semantics.py:158:39 - error: Type "CovariantParamSpec[(int)]" is not assignable to declared type "CovariantParamSpec[(object)]"'] |
| 58 | +Line 161: Unexpected errors ['generics_paramspec_semantics.py:161:24 - error: "contravariant" is unknown parameter to ParamSpec (reportGeneralTypeIssues)'] |
| 59 | +Line 167: Unexpected errors ['generics_paramspec_semantics.py:167:46 - error: Type "ContravariantParamSpecOld[(object)]" is not assignable to declared type "ContravariantParamSpecOld[(int)]"'] |
| 60 | +Line 170: Unexpected errors ['generics_paramspec_semantics.py:170:26 - error: "covariant" is unknown parameter to ParamSpec (reportGeneralTypeIssues)'] |
| 61 | +Line 176: Unexpected errors ['generics_paramspec_semantics.py:176:50 - error: Type "ContravariantParamSpecOld[(int)]" is not assignable to declared type "ContravariantParamSpecOld[(object)]"'] |
36 | 62 | """ |
0 commit comments