fixing pre-commit

This commit is contained in:
Yuval Shimon 2021-12-12 14:53:29 +02:00
parent 9166ff6cb5
commit df74e5c532
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ def has_default_eq(
) -> bool:
"""Check if an instance of an object contains the default eq
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)
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)
to the default onces generated by the dataclass and attr module
for dataclasses the default co_filename is <string>, for attrs class, the __eq__ should contain "attrs eq generated"
"""