Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typing: MultiDict.update accepts Iterable Mapping values.
MultiDict.__init__ correctly represents it, however the update was missing the iterable variant. Also, flipped the order of Iterable[V] and V fixes PyCharm's naive matching for generics. Mypy would accept both versions, however PyCharm would only try to infer Mapping V as the List. By listing it second it will first try to map to the Iterable[V].
- Loading branch information
1 parent
c5dc545
commit f61d9a3
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters