Код: Выделить всё
from typing import Union
async def func(arg1: str, arg2: int, arg3: Union[str, int]):
...
# Want to get
# {arg3: [str, int], arg1: str, ...}
Подробнее здесь: https://stackoverflow.com/questions/689 ... nnotations
Код: Выделить всё
from typing import Union
async def func(arg1: str, arg2: int, arg3: Union[str, int]):
...
# Want to get
# {arg3: [str, int], arg1: str, ...}