|
| 1 | +conformant = "Partial" |
| 2 | +conformance_automated = "Fail" |
| 3 | +notes = """ |
| 4 | +Does not allow an overload with no implementation in an abstract base class. |
| 5 | +""" |
| 6 | +errors_diff = """ |
| 7 | +Line 49: Unexpected errors ['overloads_definitions.py:49: error: An overloaded function outside a stub file must have an implementation [no-overload-impl]'] |
| 8 | +Line 202: Unexpected errors ['overloads_definitions.py:202: error: Signature of "good_override" incompatible with supertype "Base" [override]'] |
| 9 | +""" |
| 10 | +output = """ |
| 11 | +overloads_definitions.py:14: error: Single overload definition, multiple required [misc] |
| 12 | +overloads_definitions.py:26: error: An overloaded function outside a stub file must have an implementation [no-overload-impl] |
| 13 | +overloads_definitions.py:49: error: An overloaded function outside a stub file must have an implementation [no-overload-impl] |
| 14 | +overloads_definitions.py:63: error: An overloaded function outside a stub file must have an implementation [no-overload-impl] |
| 15 | +overloads_definitions.py:78: error: Overload does not consistently use the "@staticmethod" decorator on all function signatures. [misc] |
| 16 | +overloads_definitions.py:88: error: Overloaded function implementation does not accept all possible arguments of signature 1 [misc] |
| 17 | +overloads_definitions.py:88: error: Overloaded function implementation does not accept all possible arguments of signature 2 [misc] |
| 18 | +overloads_definitions.py:91: error: Overload does not consistently use the "@classmethod" decorator on all function signatures. [misc] |
| 19 | +overloads_definitions.py:133: error: @final should be applied only to overload implementation [misc] |
| 20 | +overloads_definitions.py:148: error: @final should be applied only to overload implementation [misc] |
| 21 | +overloads_definitions.py:176: error: Cannot override final attribute "final_method" (previously declared in base class "Base") [misc] |
| 22 | +overloads_definitions.py:176: error: Signature of "final_method" incompatible with supertype "Base" [override] |
| 23 | +overloads_definitions.py:176: note: Superclass: |
| 24 | +overloads_definitions.py:176: note: @overload |
| 25 | +overloads_definitions.py:176: note: def final_method(self, x: int) -> int |
| 26 | +overloads_definitions.py:176: note: @overload |
| 27 | +overloads_definitions.py:176: note: def final_method(self, x: str) -> str |
| 28 | +overloads_definitions.py:176: note: Subclass: |
| 29 | +overloads_definitions.py:176: note: def final_method(self, x: int | str) -> int | str |
| 30 | +overloads_definitions.py:183: error: Method "bad_override" is marked as an override, but no base method was found with this name [misc] |
| 31 | +overloads_definitions.py:202: error: Signature of "good_override" incompatible with supertype "Base" [override] |
| 32 | +overloads_definitions.py:202: note: Superclass: |
| 33 | +overloads_definitions.py:202: note: def good_override(self, x: int | str) -> int | str |
| 34 | +overloads_definitions.py:202: note: Subclass: |
| 35 | +overloads_definitions.py:202: note: @overload |
| 36 | +overloads_definitions.py:202: note: def good_override(self, x: int) -> int |
| 37 | +overloads_definitions.py:202: note: @overload |
| 38 | +overloads_definitions.py:202: note: def good_override(self, x: str) -> str |
| 39 | +overloads_definitions.py:217: error: Signature of "to_override" incompatible with supertype "Base" [override] |
| 40 | +overloads_definitions.py:217: note: Superclass: |
| 41 | +overloads_definitions.py:217: note: def to_override(self, x: int | str) -> int | str |
| 42 | +overloads_definitions.py:217: note: Subclass: |
| 43 | +overloads_definitions.py:217: note: @overload |
| 44 | +overloads_definitions.py:217: note: def to_override(self, x: int) -> int |
| 45 | +overloads_definitions.py:217: note: @overload |
| 46 | +overloads_definitions.py:217: note: def to_override(self, x: str) -> str |
| 47 | +""" |
0 commit comments