def add_method(self, key: T, method: Method) -> None:
        """Add a new method to this function which will respond for
        key returned from the dispatch function."""
        self._methods.swap(MultiFunction.__add_method, key, method)
Add a new method to this function which will respond for
        key returned from the dispatch function.