-
Notifications
You must be signed in to change notification settings - Fork 297
Expand file tree
/
Copy pathgenerics_scoping.toml
More file actions
31 lines (31 loc) · 2.59 KB
/
generics_scoping.toml
File metadata and controls
31 lines (31 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
output = """
generics_scoping.py:16: error: Expression is of type "int", not "Literal[1]" [assert-type]
generics_scoping.py:20: error: Expression is of type "str", not "Literal['a']" [assert-type]
generics_scoping.py:34: error: Argument 1 to "meth_2" of "MyClass" has incompatible type "str"; expected "int" [arg-type]
generics_scoping.py:50: error: Expression is of type "str", not "Literal['abc']" [assert-type]
generics_scoping.py:54: error: Expression is of type "bytes", not "Literal[b'abc']" [assert-type]
generics_scoping.py:61: error: Type variable "generics_scoping.S" is unbound [valid-type]
generics_scoping.py:61: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class)
generics_scoping.py:61: note: (Hint: Use "S" in function signature to bind "S" inside a function)
generics_scoping.py:65: error: Type variable "generics_scoping.S" is unbound [valid-type]
generics_scoping.py:65: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class)
generics_scoping.py:65: note: (Hint: Use "S" in function signature to bind "S" inside a function)
generics_scoping.py:76: error: Free type variable expected in Generic[...] [misc]
generics_scoping.py:86: error: Type variable "T" is bound by an outer class [valid-type]
generics_scoping.py:89: error: Type variable "generics_scoping.T" is unbound [valid-type]
generics_scoping.py:89: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
generics_scoping.py:89: note: (Hint: Use "T" in function signature to bind "T" inside a function)
generics_scoping.py:98: error: Can't use bound type variable "T" to define generic alias [valid-type]
generics_scoping.py:105: error: Type variable "generics_scoping.T" is unbound [valid-type]
generics_scoping.py:105: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
generics_scoping.py:105: note: (Hint: Use "T" in function signature to bind "T" inside a function)
generics_scoping.py:106: error: Type variable "generics_scoping.T" is unbound [valid-type]
generics_scoping.py:106: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
generics_scoping.py:106: note: (Hint: Use "T" in function signature to bind "T" inside a function)
generics_scoping.py:107: error: Type variable "generics_scoping.T" is unbound [valid-type]
generics_scoping.py:107: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
generics_scoping.py:107: note: (Hint: Use "T" in function signature to bind "T" inside a function)
"""
conformance_automated = "Pass"
errors_diff = """
"""