Make all models frozen, and sessions hashable

This commit is contained in:
Mads Marquart
2020-01-23 10:18:33 +01:00
parent 7019124d1f
commit 89f90ef849
5 changed files with 16 additions and 29 deletions

View File

@@ -27,12 +27,7 @@ class Client:
"""
#: The session to use when making requests.
_session = attr.ib(type=_session.Session)
@property
def session(self):
"""The session that's used when making requests."""
return self._session
session = attr.ib(type=_session.Session)
def fetch_users(self) -> Sequence[_user.UserData]:
"""Fetch users the client is currently chatting with.