1from __future__ import annotations
2
3import asyncio
4import sys
5from typing import Any, Dict
6
7
8def loop_if_py_lt_38(loop: asyncio.AbstractEventLoop) -> Dict[str, Any]:
9    """
10    Helper for the removal of the loop argument in Python 3.10.
11
12    """
13    return {"loop": loop} if sys.version_info[:2] < (3, 8) else {}
14