mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-12 22:45:47 +08:00
bbd13c04cc
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
11 lines
202 B
Python
11 lines
202 B
Python
from typing import Union
|
|
|
|
|
|
async def exc(e: Exception, x: Union[ValueError, TypeError]) -> Exception:
|
|
assert e == x
|
|
return e
|
|
|
|
|
|
async def legacy_exc(exception) -> Exception:
|
|
return exception
|