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

Commit

Permalink
fixup: use StrCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Quah committed Mar 29, 2023
1 parent 0a9df6f commit 45c56a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/api/errors.py
Expand Up @@ -19,15 +19,15 @@
import typing
from enum import Enum
from http import HTTPStatus
from typing import Any, Dict, Iterable, List, Optional, Union
from typing import Any, Dict, List, Optional, Union

from twisted.web import http

from synapse.util import json_decoder

if typing.TYPE_CHECKING:
from synapse.config.homeserver import HomeServerConfig
from synapse.types import JsonDict
from synapse.types import JsonDict, StrCollection

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -686,7 +686,7 @@ class FederationPullAttemptBackoffError(RuntimeError):
"""

def __init__(
self, event_ids: Iterable[str], message: Optional[str], retry_after_ms: int
self, event_ids: "StrCollection", message: Optional[str], retry_after_ms: int
):
event_ids = list(event_ids)

Expand Down

0 comments on commit 45c56a8

Please sign in to comment.