marshmallow-code/marshmallow

Type hinting for `load` is too strict

Open

#1.457 geöffnet am 12. Nov. 2019

Auf GitHub ansehen
 (12 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (640 Forks)batch import
help wantedtyping

Repository-Metriken

Stars
 (6.787 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4h 13m) (6 gemergte PRs in 30 T)

Beschreibung

The type hinting for load's data argument is set to typing.Mapping which makes sense for the many=False case, but for many=True case the type of data is list, which isn't a Mapping type.

Contributor Guide