Closed ProgramRipper closed 2 years ago
更改说明 合并了 generic_issubclass 和 generic_isinstance 中 par 为 type 和 tuple 的两个分支, 因为 Python3.8+ 均支持 issubclass 和 isinstance 的第二个参数为 "tuple of types".
generic_issubclass
generic_isinstance
type
tuple
issubclass
isinstance
向后兼容性 不会造成过去行为的改变.
更改说明 合并了
generic_issubclass
和generic_isinstance
中 par 为type
和tuple
的两个分支, 因为 Python3.8+ 均支持issubclass
和isinstance
的第二个参数为 "tuple of types".向后兼容性 不会造成过去行为的改变.