mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 20:24:14 -04:00
Update mypy configuration: no_implicit_optional = True
(#9742)
This commit is contained in:
parent
4609e58970
commit
e2b8a90897
10 changed files with 21 additions and 11 deletions
|
@ -18,7 +18,7 @@ import email.utils
|
|||
import logging
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from email.mime.text import MIMEText
|
||||
from typing import TYPE_CHECKING, List
|
||||
from typing import TYPE_CHECKING, List, Optional
|
||||
|
||||
from synapse.api.errors import StoreError, SynapseError
|
||||
from synapse.logging.context import make_deferred_yieldable
|
||||
|
@ -241,7 +241,10 @@ class AccountValidityHandler:
|
|||
return True
|
||||
|
||||
async def renew_account_for_user(
|
||||
self, user_id: str, expiration_ts: int = None, email_sent: bool = False
|
||||
self,
|
||||
user_id: str,
|
||||
expiration_ts: Optional[int] = None,
|
||||
email_sent: bool = False,
|
||||
) -> int:
|
||||
"""Renews the account attached to a given user by pushing back the
|
||||
expiration date by the current validity period in the server's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue