py.typed
missing from pypi-published bazel-runfiles
wheel causes mypy to fail to import
#2503
Labels
py.typed
missing from pypi-published bazel-runfiles
wheel causes mypy to fail to import
#2503
🐞 bug report
Affected Rule
I'm filing this issue with regards to the bazel-runfiles package published to PyPI.
Is this a regression?
unknown
Description
I can see in the wheel that there is no
py.typed
marker file, even though this file is provided asdata
to thepy_library
here. This omission causes Mypy to fail to import the package's type hints, and produces an error when running Mypy withoutrules_mypy
(such as in my IDE). My understanding of how Mypy works, based on the information here and the fact thatbazel-runfiles
is not a stubs package, is that thispy.typed
file is required in order for Mypy to work.Is this working as designed?
🔬 Minimal Reproduction
Download the wheel from here and observe the absent
py.typed
file.🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: