Skip to content

Commit 6c3f990

Browse files
authored
Fix error message - __len__ implementation is in fact missing (#1967)
1 parent 525da68 commit 6c3f990

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: conformance/tests/protocols_merging.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def close(self) -> None:
4949
s4: SizedAndClosable2 = SizedAndClosable3() # OK
5050
s5: Sized = SCConcrete1() # OK
5151

52-
s6: SizedAndClosable1 = SCConcrete2() # E: doesn't implement close
53-
s7: SizedAndClosable2 = SCConcrete2() # E: doesn't implement close
52+
s6: SizedAndClosable1 = SCConcrete2() # E: doesn't implement `__len__`
53+
s7: SizedAndClosable2 = SCConcrete2() # E: doesn't implement `__len__`
5454
s8: SizedAndClosable3 = SCConcrete2() # E: SizedAndClosable3 is not a protocol
5555

5656

0 commit comments

Comments
 (0)