Tony
Jan 14, 2023

--

I totally agree with you that this should be part of Python std lib. From my perspective, the use of signature function is to make your code more Pythonic, since the signature function takes callable as a parameter and returns the annotation as a class. During the wrapper function, you can see isinstance() still being called for type checking.

--

--

Tony
Tony

Responses (1)