(self, proposal)
| 389 | |
| 390 | @validate('loop_runner') |
| 391 | def _import_runner(self, proposal): |
| 392 | if isinstance(proposal.value, str): |
| 393 | if proposal.value in self.loop_runner_map: |
| 394 | runner, autoawait = self.loop_runner_map[proposal.value] |
| 395 | self.autoawait = autoawait |
| 396 | return runner |
| 397 | runner = import_item(proposal.value) |
| 398 | if not callable(runner): |
| 399 | raise ValueError('loop_runner must be callable') |
| 400 | return runner |
| 401 | if not callable(proposal.value): |
| 402 | raise ValueError('loop_runner must be callable') |
| 403 | return proposal.value |
| 404 | |
| 405 | automagic = Bool(True, help= |
| 406 | """ |
nothing calls this directly
no test coverage detected