I know how to refer to some types, i.e.
etc. But what about other types, such as
I know to refer to it as
type(f) == type(lambda: None)
for comparison, but, is there any other way, except that? (No silly answer such as code-golf, use another return value for the lambda, etc.)