-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Fix: PyPI's rfc3986 version 2.0.0 release seems to be older than this repository #122
Comments
Hi @ColinKennedy, That error is correct. Lines 42 to 44 in 75e77ba
rfc3986 =
py.typed Would you be willing to send one or more PRs with that and maybe include:
|
I'd be very surprised if setuptools doesn't pick up the Potential food for thought: #118 did not adjust any docstrings or documentation to account for incongruency with the annotations (e.g. |
Checking the pyproject.toml it looks like there was typing enforced by pyright. I'm not experienced with using an LSP as a type-hint enforcer. I'd always preferred mypy since it's maintained by the Python org. Mypy shows a number of issues. I skimmed the codebase quickly and the logs are consistent with what I checked.
This is mostly just to echo @Sachaa-Thanasius previous point about annotations vs docstrings but judging from the output this repository has some work before it is fully described. In the meantime I'll probably move forward with some temporary stubs and replace the stubs once types are available from here. Thank you for your replies! |
Thank you for this excellent codebase, it's made dealing with URIs much easier.
I was messing around with mypy and got this error:
error: Skipping analyzing "rfc3986": module is installed, but missing library stubs or py.typed marker [import]
Which was surprising to me because I can see in this repository's latest tagged version for 2.0.0, released on January 9th 2022 has type hints.
But if you look at the source code .tar.gz file for the same release on PyPI, the 2.0.0 version, also released on January 9th 2022, does not have any type-hints: https://files.pythonhosted.org/packages/85/40/1520d68bfa07ab5a6f065a186815fb6610c86fe957bc065754e47f7b0840/rfc3986-2.0.0.tar.gz (from this page: https://pypi.org/project/rfc3986/2.0.0/#files)
My guess is that somehow the 1.5.0 version of the code was released to PyPI as 2.0.0 by mistake. Could we get another 2.0.1 release (or a reupload of 2.0.0) to fix it?
The text was updated successfully, but these errors were encountered: