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

Commit

Permalink
Add a missing overload.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jun 7, 2021
1 parent 0f05508 commit 6a0e14e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions synapse/http/servlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,18 @@ def _parse_string_value(
return value_str


@overload
def parse_strings_from_args(
args: Dict[bytes, List[bytes]],
name: str,
default: Optional[List[str]] = None,
required: Literal[True] = True,
allowed_values: Optional[Iterable[str]] = None,
encoding: str = "ascii",
) -> List[str]:
...


@overload
def parse_strings_from_args(
args: Dict[bytes, List[bytes]],
Expand Down

0 comments on commit 6a0e14e

Please sign in to comment.