Signature.best_match#
- Signature.best_match(func, atypes)#
Return function type from signatures that matches best with given argument types.
If no match is found, raise TypeError.
- Parameters:
atypes (Type-tuple) – Specify a tuple of argument types.
- Returns:
ftype – Function type that arguments match best with given argument types.
- Return type:
Type