GraiaProject / Ariadne

一个优雅且完备的 Python QQ 自动化框架,基于 Mirai API HTTP v2。 Powered by Graia Project.
https://graia.cn/ariadne
GNU Affero General Public License v3.0
741 stars 45 forks source link

:art: Update typing.py #126

Closed ProgramRipper closed 2 years ago

ProgramRipper commented 2 years ago

更改说明 合并了 generic_issubclassgeneric_isinstance 中 par 为 typetuple 的两个分支, 因为 Python3.8+ 均支持 issubclassisinstance 的第二个参数为 "tuple of types".

向后兼容性 不会造成过去行为的改变.