Closed Callum027 closed 8 months ago
Hi @Callum027, I can add the py.typed to packages if that will help you. However, I'm not confident that everything has been typed properly. Still, will this work for you?
py.typed
is basically the same thing as advertising that your package supports type hints, and you are reasonably sure they are correct.
I've been able to continue on without py.typed
being there as well, so I think there's no need to put it in prematurely.
For more context, here is where I'm using your library: https://github.com/buildarr/buildarr-prowlarr
ok, cool project. On next library change I'll go a bit further in type hinting to se if I can enable the same. I'll keep this issue open as a reminder! Thanks
Added in v1.0.0
Hi there,
I'm looking to use this library in one of my projects. I use type hinting extensively within it, and while the type hints for
prowlarr-py
seem to work properly when read using Pylance, Mypy complains it cannot read type hints from the package (and probably the other API packages) because there is nopy.typed
file, or stubs package.Here is the resulting error when trying to run Mypy on a test file when the
prowlarr-py
package is installed:Mypy output:
For more information on what the
py.typed
file does, refer to PEP-561.