(policy, obj, method_name, is_local)
| 149 | |
| 150 | |
| 151 | def _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`. |
no test coverage detected