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

Method _hash_basis

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

Source from the content-addressed store, hash-verified

3065 __replace__ = replace
3066
3067 def _hash_basis(self):
3068 params = tuple(param for param in self.parameters.values()
3069 if param.kind != _KEYWORD_ONLY)
3070
3071 kwo_params = {param.name: param for param in self.parameters.values()
3072 if param.kind == _KEYWORD_ONLY}
3073
3074 return params, kwo_params, self.return_annotation
3075
3076 def __hash__(self):
3077 params, kwo_params, return_annotation = self._hash_basis()

Callers 2

__hash__Method · 0.95
__eq__Method · 0.95

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected