(cls, obj)
| 264 | |
| 265 | @classmethod |
| 266 | def to_callable(cls, obj): |
| 267 | if isinstance(obj, dict): |
| 268 | return get_mapping(obj) |
| 269 | if isinstance(obj, set): |
| 270 | return check_membership(obj) |
| 271 | raise TypeError('MapProcessor argument must be a dict or a callable, ' |
| 272 | 'not {}'.format(obj)) |
| 273 | |
| 274 | |
| 275 | class ReverseMapProcessor(Processor): |
nothing calls this directly
no test coverage detected