Skip to content

Commit

Permalink
Conformance tests: Ignore overlapping overload errors in LiteralString
Browse files Browse the repository at this point in the history
Part of python#1692
  • Loading branch information
JelleZijlstra committed Apr 9, 2024
1 parent 5166fd0 commit bd79ac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conformance/results/mypy/literals_literalstring.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Line 66: Expected 1 errors
Line 120: Expected 1 errors
Line 134: Expected 1 errors
Line 166: Expected 1 errors
Line 142: Unexpected errors ['literals_literalstring.py:142: error: Overloaded function signatures 1 and 2 overlap with incompatible return types [overload-overlap]', 'literals_literalstring.py:142: error: Overloaded function signatures 1 and 3 overlap with incompatible return types [overload-overlap]']
Line 152: Unexpected errors ["literals_literalstring.py:152: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader [misc]"]
Line 162: Unexpected errors ['literals_literalstring.py:162: error: Expression is of type "bool", not "str" [assert-type]']
"""
ignore_errors = ["overload-overlap"]
4 changes: 2 additions & 2 deletions conformance/results/pyright/literals_literalstring.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ literals_literalstring.py:166:21 - error: Expression of type "list[LiteralString
    Type parameter "_T@list" is invariant, but "LiteralString" is not the same as "str"
    Consider switching from "list" to "Sequence" which is covariant (reportAssignmentType)
"""
conformance_automated = "Fail"
conformance_automated = "Pass"
errors_diff = """
Line 142: Unexpected errors ['literals_literalstring.py:142:5 - error: Overload 1 for "func8" overlaps overload 2 and returns an incompatible type (reportOverlappingOverload)', 'literals_literalstring.py:142:5 - error: Overload 1 for "func8" overlaps overload 3 and returns an incompatible type (reportOverlappingOverload)']
"""
ignore_errors = ["reportOverlappingOverload"]

0 comments on commit bd79ac2

Please sign in to comment.