A collection of Overload‘s that can process calls.
Tool for overloading operations.
Has an ordered collection of overloads which serve as rules, the operation of the matching overload is called. If none match, an assertion error is raised.
Process given args and keyword args.
Return the callable that would be called and the args it’d receive.
Parameters: |
|
---|---|
Returns: | (processed_args, callable). |
Return type: | ({string: object}, callable) |
Process a call with given args and keyword args.
The matching overload is called.
Parameters: |
|
---|---|
Returns: | the return value of the called operation |