[issue45988] inspect.signature fails on a @staticmethod

2021-12-05 Thread Vedran Čačić
Vedran Čačić added the comment: Of course, signature should be imported from inspect, not from typing. In that case, the example works on Python 3.10 and 3.11. -- nosy: +veky ___ Python tracker _

[issue45988] inspect.signature fails on a @staticmethod

2021-12-05 Thread Filippo Vicentini
New submission from Filippo Vicentini : Attempting to inspect the signature of a method marked as @staticmethod during class construction fails. This happens in 3.8, 3.9. A MWE is given here: ```python from typing import signature def decorator(fun): print(signature(fun)) retu