ITADN

@dispatch breaks for typing.NewType arguments

#128Closedhamjad 创建于 2023-05-06
H
hamjadcommented
@dispatch checks that its arguments are of type `type`. Unfortunately types created using typing.NewType have runtime type `typing.NewType`, so it throws. The fix is obvious but I am not sure if it would break some unwritten design contract. Any thoughts appreciated. Thank you.
关闭于 2023-05-06 1 条评论