Skip to content

Commit 77609ac

Browse files
committed
Adjust configuration so ty reports ambiguous-protocol-member as an error
1 parent e9d1e65 commit 77609ac

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

‎conformance/results/results.html‎

Lines changed: 3 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎conformance/results/ty/protocols_definition.toml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
conformance_automated = "Fail"
2-
conformant = "Partial"
1+
conformance_automated = "Pass"
32
notes = """
4-
Reports an implicit instance attribute in a `Protocol` method only as a warning.
53
"""
64
errors_diff = """
7-
Line 67: Expected 1 errors
85
"""
96
output = """
107
protocols_definition.py:30:11: error[invalid-argument-type] Argument to function `close_all` is incorrect: Expected `Iterable[SupportsClose]`, found `list[int]`
11-
protocols_definition.py:67:9: warning[ambiguous-protocol-member] Cannot assign to an undeclared attribute in a protocol method: `temp` is not declared as a protocol member
8+
protocols_definition.py:67:9: error[ambiguous-protocol-member] Cannot assign to an undeclared attribute in a protocol method: `temp` is not declared as a protocol member
129
protocols_definition.py:114:22: error[invalid-assignment] Object of type `Concrete2_Bad1` is not assignable to `Template2`
1310
protocols_definition.py:115:22: error[invalid-assignment] Object of type `Concrete2_Bad2` is not assignable to `Template2`
1411
protocols_definition.py:116:22: error[invalid-assignment] Object of type `Concrete2_Bad3` is not assignable to `Template2`

‎conformance/tests/ty.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ assert-type-unspellable-subtype = "ignore"
99
invalid-enum-member-annotation = "error"
1010
mismatched-type-name = "error"
1111
invalid-named-tuple-override = "error"
12+
ambiguous-protocol-member = "error"

0 commit comments

Comments
 (0)