small fix

This commit is contained in:
Yuval Shimon 2021-12-12 14:40:46 +02:00
parent 897395afd5
commit 31f42ef83f
1 changed files with 1 additions and 2 deletions

View File

@ -151,8 +151,7 @@ def has_default_eq(
code_filename = obj.__eq__.__code__.co_filename
if isattrs(obj):
return "attrs eq generated" in code_filename
if isdatacls(obj):
return code_filename == "<string>"
return code_filename == "<string>" # dataclass
def assertrepr_compare(config, op: str, left: Any, right: Any) -> Optional[List[str]]: