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

Explicitly export OneOfSchema for mypy

Open RazerM opened this issue 4 months ago • 0 comments

This fixes the following mypy error:

Module "marshmallow_oneofschema" does not explicitly export attribute "OneOfSchema"

The alternative way to make mypy happy is to do the following, which I can change if you prefer it over __all__.

-from .one_of_schema import OneOfSchema  # noqa
+from .one_of_schema import OneOfSchema as OneOfSchema  # noqa

RazerM avatar Feb 15 '24 09:02 RazerM