fixing pre-commit
This commit is contained in:
parent
9166ff6cb5
commit
df74e5c532
|
@ -140,7 +140,8 @@ def has_default_eq(
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Check if an instance of an object contains the default eq
|
"""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
|
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"
|
for dataclasses the default co_filename is <string>, for attrs class, the __eq__ should contain "attrs eq generated"
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue