According to PEP-484 Stub Files imported modules are not exported by default unless from ... import ... as ... is used. This exports UniqueTogetherValidator and aligns imports in serializers.
Related issues
Closes #599
Other imports should be exported as well. Following command prints 128 lines.
I know, some of those imports are not meant to be exported (e.g. they are not imported in rest_framework itself). I'm thinking about finding them automatically and maybe extend this PR for mode imports?
I have made things!
According to PEP-484 Stub Files imported modules are not exported by default unless
from ... import ... as ...
is used. This exportsUniqueTogetherValidator
and aligns imports inserializers
.Related issues
Other imports should be exported as well. Following command prints 128 lines.
I know, some of those imports are not meant to be exported (e.g. they are not imported in
rest_framework
itself). I'm thinking about finding them automatically and maybe extend this PR for mode imports?