Include py.typed file in wheels#975
Include py.typed file in wheels#975akx merged 1 commit intopython-babel:masterfrom AlexWaygood:include-py-typed
py.typed file in wheels#975Conversation
|
Nope, yep, this does exactly what it should 👍 |
Codecov Report
@@ Coverage Diff @@
## master #975 +/- ##
=======================================
Coverage 90.91% 90.91%
=======================================
Files 25 25
Lines 4350 4350
=======================================
Hits 3955 3955
Misses 395 395 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Thanks!
I... hope so. If I'm honest, I'm young enough that I've never maintained a project that uses a |
|
@AlexWaygood Thanks again. Released in Babel 2.12.1, now on PyPI. |
|
Confirmed that mypy recognises the library as having inline type annotations with the latest release 🎉 |
#934 by @DenverCoder1 added inline type annotations and a
py.typedfile, which is great! Unfortunately, however, thepy.typedfile hasn't been included in wheels published to PyPI for v2.12.0. This means that if Ipip installbabel locally, mypy still doesn't recognisebabelas a typed library. Running mypy on a file with justimport babelin it results in this output from mypy (unless the typeshedtypes-babelpackage is installed):The fix is simple: just a one-line addition to
setup.py.Closes #795 (which should maybe have been closed after #934).