def __getattr__ ( self , item : str ) -> Callable : return functools . partial ( self . call_action , item )
how to call on method python
Get a callable that sends the actual API request internally .
def __getattr__(self, item: str) -> Callable:
        """Get a callable that sends the actual API request internally."""
        return functools.partial(self.call_action, item)