forked from python/typing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhistorical_positional.toml
More file actions
19 lines (19 loc) · 973 Bytes
/
Copy pathhistorical_positional.toml
File metadata and controls
19 lines (19 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
conformant = "Partial"
notes = """
Does not reject positional-only parameter after non-positional-only parameter.
Treats keyword-only parameter as positional-only.
Applies legacy positional-only rules when PEP 570 syntax is used.
"""
output = """
historical_positional.py:18: error: Unexpected keyword argument "__x" for "f1" [call-arg]
historical_positional.py:48: error: Unexpected keyword argument "__y" for "f3" [call-arg]
historical_positional.py:59: error: Unexpected keyword argument "__x" for "m1" of "A" [call-arg]
historical_positional.py:69: error: Unexpected keyword argument "__y" for "f4" [call-arg]
"""
conformance_automated = "Fail"
errors_diff = """
Line 26: Expected 1 errors
Line 54: Expected 1 errors
Line 48: Unexpected errors ['historical_positional.py:48: error: Unexpected keyword argument "__y" for "f3" [call-arg]']
Line 69: Unexpected errors ['historical_positional.py:69: error: Unexpected keyword argument "__y" for "f4" [call-arg]']
"""