from .matrix import * import .listeners real_listeners=dict(filter(lambda x:isinstance(x,Listener),listeners.__dict__.items())) class MatrixClient(MatrixClient): def __init__(self,*args,**kwargs): super().__init__(*args,**kwargs) self.listeners=real_listeners