mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-10-25 03:56:40 +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