def get_all_commands(self) -> List[str]:
        """Returns a list of all commands."""
        return [name[len(COMMAND_FUNC_PREFIX):] for name in self.get_names()
                if name.startswith(COMMAND_FUNC_PREFIX) and callable(getattr(self, name))]
def get_all_commands ( self ) -> List [ str ] : return [ name [ len ( COMMAND_FUNC_PREFIX ) : ] for name in self . get_names ( ) if name . startswith ( COMMAND_FUNC_PREFIX ) and callable ( getattr ( self , name ) ) ]
Returns a list of all commands.