marshmallow-code/marshmallow

Type hinting for `load` is too strict

Open

#1,457 opened on 2019年11月12日

GitHub で見る
 (12 comments) (0 reactions) (0 assignees)Python (6,787 stars) (640 forks)batch import
help wantedtyping

説明

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.

コントリビューターガイド

Type hinting for `load` is too strict · marshmallow-code/marshmallow#1457 | Good First Issue