summaryrefslogtreecommitdiffstats
path: root/accounts/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/models.py')
-rw-r--r--accounts/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/models.py b/accounts/models.py
index fe6c500..c897815 100644
--- a/accounts/models.py
+++ b/accounts/models.py
@@ -68,7 +68,7 @@ class Account(UserMixin):
else:
self.new_password_services[service] = (old_password, new_password)
- def _set_attribute(self, key, value):
+ def _set_attribute(self, key: str, value: Any) -> None:
self.attributes[key] = value
def change_email(self, new_mail: str):
@@ -85,7 +85,7 @@ class Account(UserMixin):
raise AttributeError("'%s' object has no attribute '%s'" %
(self.__class__.__name__, name))
- def __setattr__(self, name, value):
+ def __setattr__(self, name: str, value: Any):
if self._ready and name not in self.__dict__:
self._set_attribute(name, value)
else: