mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-02-26 20:54:44 +00:00
💥 Remove: 移除 Python 3.9 支持 (#3860)
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
from typing import Union
|
||||
|
||||
|
||||
async def exc(e: Exception, x: Union[ValueError, TypeError]) -> Exception:
|
||||
async def exc(e: Exception, x: ValueError | TypeError) -> Exception:
|
||||
assert e == x
|
||||
return e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user