Protocols
The protocols module defines structural interfaces (PEPs 544) used internally to decouple components. BotLike is the protocol that Extension and other subsystems accept instead of a concrete Bot, making them easier to test in isolation.
matrix.protocols.BotLike
Bases: Protocol
prefix
instance-attribute
prefix
config
property
config
get_room
get_room(room_id)
Source code in matrix/protocols.py
13 | |