kazhala / InquirerPy

:snake: Python port of Inquirer.js (A collection of common interactive command-line user interfaces)
https://inquirerpy.readthedocs.io
MIT License
357 stars 19 forks source link

Missing py.typed marker file for PEP 561 #45

Closed jonemo closed 2 years ago

jonemo commented 2 years ago

When type checking projects that depend on InquirerPy with mypy with default settings, the following error results in a type checking failure:

Skipping analyzing "InquirerPy": module is installed, but missing library stubs or py.typed marker

To reproduce:

  1. Install InquirerPy as dependency into a project
  2. Run mypy my-project-directory to type check the project

Related information:

kazhala commented 2 years ago

Hi jonemo ,

Thanks again for doing this. I should have touched up in the issue ticket for this. No not your changes broke the pyright lints, think pyright updated some checks around Optional[XXX] which I need to update the codebase to align with that.

I've been quite busy for the last few months and should have fixed the pyright thing first. I'll close your issue once I fix the linting and make a quick release.

Thanks

cross posting here ..