msgraph-sdk-python-core icon indicating copy to clipboard operation
msgraph-sdk-python-core copied to clipboard

Typing information not exposed

Open nhairs opened this issue 2 years ago • 0 comments

The typing information in this library is not available for projects that import it. This is because it does not comply with PEP 561 which requires a py.typed file in the root of the package.

For projects utilising MyPy this will result in the following error:

src/example.py:9: error: Skipping analyzing "msgraph.core": module is installed, but missing library stubs or py.typed marker  [import]

Further reading:

  • https://peps.python.org/pep-0561/#packaging-type-information
  • https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-library-stubs-or-py-typed-marker

Alt titles for searchability:

  • py.typed missing
  • msgraph.core not PEP 561 compliant

nhairs avatar Jan 02 '24 09:01 nhairs