|
1 | 1 | output = """ |
2 | | -generics_scoping.py:29: error: Argument 1 to "meth_2" of "MyClass" has incompatible type "str"; expected "int" [arg-type] |
3 | | -generics_scoping.py:50: error: Type variable "generics_scoping.S" is unbound [valid-type] |
4 | | -generics_scoping.py:50: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class) |
5 | | -generics_scoping.py:50: note: (Hint: Use "S" in function signature to bind "S" inside a function) |
6 | | -generics_scoping.py:54: error: Type variable "generics_scoping.S" is unbound [valid-type] |
7 | | -generics_scoping.py:54: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class) |
8 | | -generics_scoping.py:54: note: (Hint: Use "S" in function signature to bind "S" inside a function) |
9 | | -generics_scoping.py:65: error: Free type variable expected in Generic[...] [misc] |
10 | | -generics_scoping.py:75: error: Type variable "T" is bound by an outer class [valid-type] |
11 | | -generics_scoping.py:78: error: Type variable "generics_scoping.T" is unbound [valid-type] |
12 | | -generics_scoping.py:78: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
13 | | -generics_scoping.py:78: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
14 | | -generics_scoping.py:87: error: Can't use bound type variable "T" to define generic alias [valid-type] |
15 | | -generics_scoping.py:94: error: Type variable "generics_scoping.T" is unbound [valid-type] |
16 | | -generics_scoping.py:94: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
17 | | -generics_scoping.py:94: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
18 | | -generics_scoping.py:95: error: Type variable "generics_scoping.T" is unbound [valid-type] |
19 | | -generics_scoping.py:95: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
20 | | -generics_scoping.py:95: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
21 | | -generics_scoping.py:96: error: Type variable "generics_scoping.T" is unbound [valid-type] |
22 | | -generics_scoping.py:96: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
23 | | -generics_scoping.py:96: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
| 2 | +generics_scoping.py:16: error: Expression is of type "int", not "Literal[1]" [assert-type] |
| 3 | +generics_scoping.py:20: error: Expression is of type "str", not "Literal['a']" [assert-type] |
| 4 | +generics_scoping.py:34: error: Argument 1 to "meth_2" of "MyClass" has incompatible type "str"; expected "int" [arg-type] |
| 5 | +generics_scoping.py:50: error: Expression is of type "str", not "Literal['abc']" [assert-type] |
| 6 | +generics_scoping.py:54: error: Expression is of type "bytes", not "Literal[b'abc']" [assert-type] |
| 7 | +generics_scoping.py:61: error: Type variable "generics_scoping.S" is unbound [valid-type] |
| 8 | +generics_scoping.py:61: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class) |
| 9 | +generics_scoping.py:61: note: (Hint: Use "S" in function signature to bind "S" inside a function) |
| 10 | +generics_scoping.py:65: error: Type variable "generics_scoping.S" is unbound [valid-type] |
| 11 | +generics_scoping.py:65: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class) |
| 12 | +generics_scoping.py:65: note: (Hint: Use "S" in function signature to bind "S" inside a function) |
| 13 | +generics_scoping.py:76: error: Free type variable expected in Generic[...] [misc] |
| 14 | +generics_scoping.py:86: error: Type variable "T" is bound by an outer class [valid-type] |
| 15 | +generics_scoping.py:89: error: Type variable "generics_scoping.T" is unbound [valid-type] |
| 16 | +generics_scoping.py:89: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
| 17 | +generics_scoping.py:89: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
| 18 | +generics_scoping.py:98: error: Can't use bound type variable "T" to define generic alias [valid-type] |
| 19 | +generics_scoping.py:105: error: Type variable "generics_scoping.T" is unbound [valid-type] |
| 20 | +generics_scoping.py:105: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
| 21 | +generics_scoping.py:105: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
| 22 | +generics_scoping.py:106: error: Type variable "generics_scoping.T" is unbound [valid-type] |
| 23 | +generics_scoping.py:106: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
| 24 | +generics_scoping.py:106: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
| 25 | +generics_scoping.py:107: error: Type variable "generics_scoping.T" is unbound [valid-type] |
| 26 | +generics_scoping.py:107: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class) |
| 27 | +generics_scoping.py:107: note: (Hint: Use "T" in function signature to bind "T" inside a function) |
24 | 28 | """ |
25 | 29 | conformance_automated = "Pass" |
26 | 30 | errors_diff = """ |
|
0 commit comments