Hey, is there a way to mark all python modules use...
# general
a
Hey, is there a way to mark all python modules used in pants as typed ? eg. by enforcing to add a
py.typed
file or adding it implicitly for mypy and packaging?
c
There’s been thoughts of adding a
typed
field to the
python_distribution
target, but currently you’ll have to create the
py.typed
file yourself and include it in your distribution as a resource. For comparison you may look at how this is done in the Pants repo itself. https://github.com/pantsbuild/pants/blob/6dda95b425203db32f05eb3d4317655929162332/src/python/pants/BUILD#L43
👍 1