we-like-parsers / pegen

PEG parser generator for Python
https://we-like-parsers.github.io/pegen/
MIT License
150 stars 32 forks source link

distribution doesn't seem to include `py.typed` #78

Closed erikkemperman closed 1 year ago

erikkemperman commented 1 year ago

After a simple pip install pegen, the directory site-packages/pegen under my venv doesn't include py.typed and consequently mypy fails to typecheck my code which imports stuff from pegen. I'd submit a PR but I expect you'll want to include this file via pyproject.toml rather than setup.py, and honestly I'm not not sure how to do that.

For the moment, I just did touch .venv/lib/python3.11/site-packages/pegen/py.typed to nudge things along, but it would be great if this wasn't necessary. Thanks!