On 31 Mar 2021, at 13:34, Victor Stinner vstinner@python.org wrote:
def func(): print("my func")
This would work for the example given of a func with no args. But cannot check it called with the right number.
def func(*args): print("my func")
A signature like this would be a hard nut to crack.
def func(fixed, *args): print("my func", fixed, args)
Barry