forked from python/typing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoverloads_definitions.toml
More file actions
19 lines (19 loc) · 1.33 KB
/
Copy pathoverloads_definitions.toml
File metadata and controls
19 lines (19 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
conformant = "Partial"
conformance_automated = "Fail"
notes = """
Allows @override to be on all overloads and implementation, instead of just implementation.
"""
errors_diff = """
Lines 226, 227, 228, 231, 232: Expected error (tag 'override_impl')
"""
output = """
overloads_definitions.py:15: error: Single overload definition, multiple required [misc]
overloads_definitions.py:27: error: An overloaded function outside a stub file must have an implementation [no-overload-impl]
overloads_definitions.py:58: error: An overloaded function outside a stub file must have an implementation [no-overload-impl]
overloads_definitions.py:71: error: Overload does not consistently use the "@staticmethod" decorator on all function signatures. [misc]
overloads_definitions.py:84: error: Overload does not consistently use the "@classmethod" decorator on all function signatures. [misc]
overloads_definitions.py:122: error: @final should be applied only to overload implementation [misc]
overloads_definitions.py:137: error: @final should be applied only to overload implementation [misc]
overloads_definitions.py:180: error: Cannot override final attribute "final_method" (previously declared in base class "Base") [misc]
overloads_definitions.py:195: error: Method "bad_override" is marked as an override, but no base method was found with this name [misc]
"""