作者:mobiledu2502858053 | 来源:互联网 | 2023-09-07 16:47
The inheritance model for
and its subclass
does not seem semantically valid. This issue arose when attempting to differentiate the two by duck typing the validators.
is not really a type of
.
validates numbers, and
validates sequences and collections. This indicates that their domains are disjoint.
It would be more appropriate for the
validator to have an attribute named something like
which is an instance of the
validator.
This issue is equivalent to extending an
class to create a
class. A
has an
, but it is not a type of
itself.
该提问来源于开源项目:marshmallow-code/marshmallow
Thanks for reviewing the PR.
Closing this issue since #458 was merged into the
branch.