Skip to content

Commit df74e5c

Browse files
author
Yuval Shimon
committed
fixing pre-commit
1 parent 9166ff6 commit df74e5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/assertion/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def has_default_eq(
140140
) -> bool:
141141
"""Check if an instance of an object contains the default eq
142142
143-
First, we check if the object's __eq__ attribute has __code__, if so, we check the equally of the method code filename (__code__.co_filename)
143+
First, we check if the object's __eq__ attribute has __code__,
144+
if so, we check the equally of the method code filename (__code__.co_filename)
144145
to the default onces generated by the dataclass and attr module
145146
for dataclasses the default co_filename is <string>, for attrs class, the __eq__ should contain "attrs eq generated"
146147
"""

0 commit comments

Comments
 (0)