MCPcopy Index your code
hub / github.com/apache/fory / _resolve_validated_bound_method

Function _resolve_validated_bound_method

python/pyfory/serializer.py:151–156  ·  view source on GitHub ↗
(policy, obj, method_name, is_local)

Source from the content-addressed store, hash-verified

149
150
151def _resolve_validated_bound_method(policy, obj, method_name, is_local):
152 if policy is DEFAULT_POLICY:
153 return getattr(obj, method_name)
154 method = _bind_static_method(obj, method_name)
155 policy.validate_method(method, is_local=is_local)
156 return method
157
158
159# Keep the mode switch here instead of inside `_serializer.py`.

Callers 3

_deserialize_functionMethod · 0.85
readMethod · 0.85
readMethod · 0.85

Calls 2

_bind_static_methodFunction · 0.85
validate_methodMethod · 0.45

Tested by

no test coverage detected