marshmallow-oneofschema icon indicating copy to clipboard operation
marshmallow-oneofschema copied to clipboard

Publish PEP 561 type information

Open sirosen opened this issue 2 years ago • 0 comments

I currently have an application using marshmallow-oneofschema and linting under mypy. As I tune up mypy strictness, I noticed errors about "subclassing Any".

marshmallow-oneofschema does not publish annotations right now. As a result, OneOfSchema isn't known to type-checkers (at least mypy) as a subclass of Schema. It also means that the OneOfSchema attributes are unrecognized.

I don't think much needs annotation. The primary change needed is the inclusion of py.typed, as in other marshmallow-code projects. I may open a few PRs when I get time to add more annotations.

sirosen avatar Apr 05 '22 12:04 sirosen