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

Method __hash__

Lib/inspect.py:3076–3079  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3074 return params, kwo_params, self.return_annotation
3075
3076 def __hash__(self):
3077 params, kwo_params, return_annotation = self._hash_basis()
3078 kwo_params = frozenset(kwo_params.values())
3079 return hash((params, kwo_params, return_annotation))
3080
3081 def __eq__(self, other):
3082 if self is other:

Callers

nothing calls this directly

Calls 3

_hash_basisMethod · 0.95
hashFunction · 0.85
valuesMethod · 0.45

Tested by

no test coverage detected