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

Commit 6a0e14e

Browse files
committed
Add a missing overload.
1 parent 0f05508 commit 6a0e14e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

synapse/http/servlet.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,18 @@ def _parse_string_value(
224224
return value_str
225225

226226

227+
@overload
228+
def parse_strings_from_args(
229+
args: Dict[bytes, List[bytes]],
230+
name: str,
231+
default: Optional[List[str]] = None,
232+
required: Literal[True] = True,
233+
allowed_values: Optional[Iterable[str]] = None,
234+
encoding: str = "ascii",
235+
) -> List[str]:
236+
...
237+
238+
227239
@overload
228240
def parse_strings_from_args(
229241
args: Dict[bytes, List[bytes]],

0 commit comments

Comments
 (0)