(evloop: asyncio.AbstractEventLoop)
| 47 | |
| 48 | @staticmethod |
| 49 | def _is_valid_loop(evloop: asyncio.AbstractEventLoop) -> bool: |
| 50 | if not evloop: |
| 51 | return False |
| 52 | for meth in LoopValidator.REQUIRED_METHODS: |
| 53 | abs_meth, actual_meth = ( |
| 54 | getattr(asyncio.AbstractEventLoop, meth), getattr(evloop.__class__, meth)) |
| 55 | if abs_meth == actual_meth: |
| 56 | return False |
| 57 | return True |
| 58 | |
| 59 | @staticmethod |
| 60 | def get_event_loop(evloop: asyncio.AbstractEventLoop) -> asyncio.AbstractEventLoop: |
no outgoing calls
no test coverage detected