Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Ignore mypy on a line.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jul 31, 2020
1 parent 699eb37 commit 052a474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/server_notices/resource_limits_server_notices.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from typing import List, Optional, Tuple
from typing import List, Tuple

from synapse.api.constants import (
EventTypes,
Expand Down Expand Up @@ -113,7 +113,7 @@ async def maybe_send_server_notice_to_user(self, user_id: str) -> None:
elif not currently_blocked and limit_msg:
# Room is not notifying of a block, when it ought to be.
await self._apply_limit_block_notification(
user_id, limit_msg, limit_type
user_id, limit_msg, limit_type # type: ignore
)
except SynapseError as e:
logger.error("Error sending resource limits server notice: %s", e)
Expand All @@ -135,7 +135,7 @@ async def _remove_limit_block_notification(
)

async def _apply_limit_block_notification(
self, user_id: str, event_body: str, event_limit_type: Optional[str]
self, user_id: str, event_body: str, event_limit_type: str
) -> None:
"""Utility method to apply limit block notifications in the server
notices room.
Expand Down

0 comments on commit 052a474

Please sign in to comment.