MCPcopy
hub / github.com/dry-python/returns / equals

Method equals

returns/interfaces/equable.py:75–76  ·  view source on GitHub ↗

Type-safe equality check for values of the same type.

(self: _EqualType, other: _EqualType)

Source from the content-addressed store, hash-verified

73
74 @abstractmethod
75 def equals(self: _EqualType, other: _EqualType) -> bool:
76 """Type-safe equality check for values of the same type."""

Callers 11

reflexive_lawMethod · 0.80
symmetry_lawMethod · 0.80
transitivity_lawMethod · 0.80
test_equalsFunction · 0.80
test_not_equalsFunction · 0.80
test_equalsFunction · 0.80
test_not_equalsFunction · 0.80
test_equalsFunction · 0.80
test_not_equalsFunction · 0.80
test_equalsFunction · 0.80
test_not_equalsFunction · 0.80

Calls

no outgoing calls

Tested by 8

test_equalsFunction · 0.64
test_not_equalsFunction · 0.64
test_equalsFunction · 0.64
test_not_equalsFunction · 0.64
test_equalsFunction · 0.64
test_not_equalsFunction · 0.64
test_equalsFunction · 0.64
test_not_equalsFunction · 0.64