nonebot2/tests/plugins/param/param_exception.py
2021-12-20 14:31:48 +08:00

7 lines
133 B
Python

from typing import Union
async def exc(e: Exception, x: Union[ValueError, TypeError]) -> Exception:
assert e == x
return e