Improve type safety
I am using basedpyright
for type safety, and this PR fixes reports from the tool.
One is left on add_event_callback(self.invite_callback, InviteMemberEvent)
but it is because types are inconsistent here in matrix-nio
We would need another add_invite_callback
method I believe: InviteMemberEvent
is not a subtype of Event
.
Edited by Mathieu Velten