simplify code / take out user-gen typeerror case

This commit is contained in:
Reagan Lee
2023-08-10 17:43:01 -07:00
parent e938580257
commit b9cb87d862
2 changed files with 3 additions and 7 deletions

View File

@@ -689,7 +689,7 @@ class TestAssertionRewrite:
def f() -> None:
class A:
def __iter__(self):
raise TypeError("user message")
raise ValueError()
def __eq__(self, o: object) -> bool:
return self is o