MCPcopy Index your code
hub / github.com/RustPython/RustPython / __eq__

Method __eq__

Lib/inspect.py:3081–3086  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

3079 return hash((params, kwo_params, return_annotation))
3080
3081 def __eq__(self, other):
3082 if self is other:
3083 return True
3084 if not isinstance(other, Signature):
3085 return NotImplemented
3086 return self._hash_basis() == other._hash_basis()
3087
3088 def _bind(self, args, kwargs, *, partial=False):
3089 """Private method. Don't use directly."""

Callers

nothing calls this directly

Calls 2

_hash_basisMethod · 0.95
isinstanceFunction · 0.85

Tested by

no test coverage detected