marshmallow-code/marshmallow

Type hinting for `load` is too strict

オープン

#1,457 opened on 2019/11/12

 (12 件のコメント) (0 件のリアクション) (0 人の担当者)Python (640 件のフォーク)batch import
help wantedtyping

Repository metrics

Stars
 (6,787 個のスター)
PR merge metrics
 (平均マージ 10h 55m) (30d で 7 merged PRs)

説明

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.

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