()
| 752 | |
| 753 | |
| 754 | def _get_coroutine_attributes() -> dict[str, Optional[object]]: |
| 755 | async def _dummy(): |
| 756 | return None |
| 757 | |
| 758 | coro = _dummy() |
| 759 | try: |
| 760 | return {attr: getattr(coro, attr, None) for attr in dir(coro)} |
| 761 | finally: |
| 762 | coro.close() |
| 763 | |
| 764 | |
| 765 | def eval_node(node: Union[ast.AST, None], context: EvaluationContext): |