Closed intgr closed 1 year ago
I think what may have happened is that the build configuration for py.typed
was already lost between versions v1.1.1...v1.2.0 in commit https://github.com/oxan/djangorestframework-dataclasses/commit/9be33a94884df3a7ae04c1c2119435c929c59c0f
But the build
directory from 1.1.1 was re-used for 1.2.0 package, and the stray py.typed
file remained from a previous build. I've had similar issues in the past with unclean build directories.
Hmm, that's strange, I remember checking this when I worked on 9be33a9, but I must've missed something.
But the
build
directory from 1.1.1 was re-used for 1.2.0 package, and the straypy.typed
file remained from a previous build.
AFAIK python -m build
(which I use) runs every build in a clean environment, so this shouldn't happen.
In any case, your PR looks good, I've merged it; thanks!
Not sure how this happened, I don't see any relevant changes in the git diff between v1.2.0...v1.3.0
But the recent 1.3.0 release
.whl
file does not contain apy.typed
file, making type checkers like mypy ignore all type hints in the library.Different from 1.2.0 version, which has this file: