mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-17 19:40:44 +00:00
✅ add param tests
This commit is contained in:
6
tests/plugins/param/param_exception.py
Normal file
6
tests/plugins/param/param_exception.py
Normal file
@ -0,0 +1,6 @@
|
||||
from typing import Union
|
||||
|
||||
|
||||
async def exc(e: Exception, x: Union[ValueError, TypeError]) -> Exception:
|
||||
assert e == x
|
||||
return e
|
Reference in New Issue
Block a user