(self, proposal)
| 404 | |
| 405 | @validate('loop_runner') |
| 406 | def _import_runner(self, proposal): |
| 407 | if isinstance(proposal.value, str): |
| 408 | if proposal.value in self.loop_runner_map: |
| 409 | runner, autoawait = self.loop_runner_map[proposal.value] |
| 410 | self.autoawait = autoawait |
| 411 | return runner |
| 412 | runner = import_item(proposal.value) |
| 413 | if not callable(runner): |
| 414 | raise ValueError('loop_runner must be callable') |
| 415 | return runner |
| 416 | if not callable(proposal.value): |
| 417 | raise ValueError('loop_runner must be callable') |
| 418 | return proposal.value |
| 419 | |
| 420 | automagic = Bool(True, help= |
| 421 | """ |
nothing calls this directly
no test coverage detected