tus / tus-py-client

A Python client for the tus resumable upload protocol
https://tus.io/
MIT License
169 stars 45 forks source link

Typing information is not exposed (PEP 561) #87

Closed nhairs closed 11 months ago

nhairs commented 11 months ago

The typing information of this package is not available for projects that import the tusclient package. 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 "tusclient": module is installed, but missing library stubs or py.typed marker  [import]

Further reading:

Alt titles for searchability:

Acconut commented 11 months ago

Thanks, v1.0.2 with this improvement is released