diff options
Diffstat (limited to 'synapse/http/servlet.py')
-rw-r--r-- | synapse/http/servlet.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/synapse/http/servlet.py b/synapse/http/servlet.py index 6dd9b9ad03..91ba93372c 100644 --- a/synapse/http/servlet.py +++ b/synapse/http/servlet.py @@ -79,35 +79,6 @@ def parse_integer( return parse_integer_from_args(args, name, default, required) -@overload -def parse_integer_from_args( - args: Mapping[bytes, Sequence[bytes]], - name: str, - default: Optional[int] = None, -) -> Optional[int]: - ... - - -@overload -def parse_integer_from_args( - args: Mapping[bytes, Sequence[bytes]], - name: str, - *, - required: Literal[True], -) -> int: - ... - - -@overload -def parse_integer_from_args( - args: Mapping[bytes, Sequence[bytes]], - name: str, - default: Optional[int] = None, - required: bool = False, -) -> Optional[int]: - ... - - def parse_integer_from_args( args: Mapping[bytes, Sequence[bytes]], name: str, |