Skip to content

Commit

Permalink
fix multivaluedict init argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Mar 5, 2019
1 parent 2bc0634 commit f02b199
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions django-stubs/utils/datastructures.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ from typing import (
Union,
overload,
Iterator,
Optional,
)

from typing_extensions import Literal
Expand All @@ -31,9 +32,9 @@ class MultiValueDictKeyError(KeyError): ...

class MultiValueDict(MutableMapping[_K, _V]):
@overload
def __init__(self, key_to_list_mapping: Iterable[Tuple[_K, Union[_V, List[_V]]]] = ...) -> None: ...
def __init__(self, key_to_list_mapping: Mapping[_K, Optional[List[_V]]] = ...) -> None: ...
@overload
def __init__(self, key_to_list_mapping: Mapping[_K, Union[_V, List[_V]]] = ...) -> None: ...
def __init__(self, key_to_list_mapping: Iterable[Tuple[_K, List[_V]]] = ...) -> None: ...
def getlist(self, key: _K, default: List[_V] = None) -> List[_V]: ...
def setlist(self, key: _K, list_: List[_V]) -> None: ...
def setlistdefault(self, key: _K, default_list: List[_V] = None) -> List[_V]: ...
Expand Down

0 comments on commit f02b199

Please sign in to comment.