def is_signature(sig):
 return isinstance(sig, (str, tuple, typing.Signature))

def is_signature ( sig ) : return isinstance ( sig , ( str , tuple , typing . Signature ) )
return whether *sig* is a potentially valid signature specification .