from matrix_client.api import MatrixHttpApi class CustomMatrixHttpApi(MatrixHttpApi): def __init__( self, base_url, token=None, identity=None, default_429_wait_ms=5000, use_authorization_header=True ): super().__init__(base_url, token, identity, default_429_wait_ms)