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

@@ -115,7 +115,7 @@ def get_error_data(html: str, url: str) -> Tuple[Optional[int], Optional[str]]:
return code, soup.get_text() or None
@attr.s(slots=True, kw_only=kw_only, repr=False)
@attr.s(slots=True, kw_only=kw_only, repr=False, eq=False)
class Session:
"""Stores and manages state required for most Facebook requests.