You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: conformance/results/mypy/overloads_overlap.toml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,5 @@ errors_diff = """
4
4
"""
5
5
output = """
6
6
overloads_overlap.py:14: error: Overloaded function signatures 1 and 2 overlap with incompatible return types [overload-overlap]
7
+
overloads_overlap.py:36: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader [overload-cannot-match]
Does not check for overlapping overloads with inconsistent return type.
3
+
Does not check for partially overlapping overloads with inconsistent return type.
4
4
"""
5
5
conformance_automated = "Fail"
6
6
errors_diff = """
7
7
Line 14: Expected 1 errors
8
8
"""
9
9
output = """
10
+
overloads_overlap.py:36:0 Incompatible overload [43]: The overloaded function `full_overlap` on line 36 will never be matched. The signature `(x: bool) -> bool` is the same or broader.
Copy file name to clipboardExpand all lines: conformance/results/pyright/overloads_overlap.toml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,5 @@ errors_diff = """
4
4
"""
5
5
output = """
6
6
overloads_overlap.py:14:5 - error: Overload 1 for "is_one" overlaps overload 2 and returns an incompatible type (reportOverlappingOverload)
7
+
overloads_overlap.py:36:5 - error: Overload 2 for "full_overlap" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
<thclass="column col2 not-conformant"><divclass="hover-text">Fail<spanclass="tooltip-text" id="bottom"><p>Does not check for overlapping overloads with inconsistent return type.</p></span></div></th>
697
-
<thclass="column col2 not-conformant"><divclass="hover-text">Fail<spanclass="tooltip-text" id="bottom"><p>Does not check for overlapping overloads with inconsistent return type.</p></span></div></th>
696
+
<thclass="column col2 partially-conformant"><divclass="hover-text">Partial<spanclass="tooltip-text" id="bottom"><p>Does not check for partially overlapping overloads with inconsistent return type.</p></span></div></th>
697
+
<thclass="column col2 not-conformant"><divclass="hover-text">Fail<spanclass="tooltip-text" id="bottom"><p>Does not check for partially or fully overlapping overloads.</p></span></div></th>
0 commit comments