Skip to content

Update getting_started.rst to add uv #18983

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

Closed
wants to merge 2 commits into from

Conversation

godalming123
Copy link

Reduces the necessity for #18971 or #17214 by explaining how to use mypy with uv.


Mypy requires Python 3.9 or later to run. You can install mypy using pip:
Mypy requires Python 3.9 or later to run, and can be installed through either pip or uv.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid this is a bit unfair. There is poetry, there is pdm, there is pipx - are we going to enumerate all package managers here? pip is the "default" one, so mentioning pip is reasonable. Everything else is user's homework IMO: "how to run a tool using your package manager?" I'm not a maintainer here, so please don't treat the comment above as a binding disapproval, let's wait for someone from the core team to comment.


Mypy requires Python 3.9 or later to run. You can install mypy using pip:
Mypy requires Python 3.9 or later to run, and can be installed through either pip or uv.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence also implicitly says "we do support pip and uv, but may not support other package managers", which is a false impression - mypy does not care which installation method was used, apt-get install mypy works on Ubuntu as well (even though it installs an ancient version). Perhaps

Suggested change
Mypy requires Python 3.9 or later to run, and can be installed through either pip or uv.
Mypy requires Python 3.9 or later to run, and can be installed via pip, uv or another package manager.

Here's how ruff explains its installation (note that they have to mention uv as that's another tool from Astral.sh, good for marketing, "recommended" is there for the same reason): https://docs.astral.sh/ruff/installation/

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Apr 28, 2025

Thanks, but I don't think we need to do this. We expect our users to know how the packaging tools they're choosing work. The information we'd like to convey here is a) the project name on PyPI is mypy, b) what the mypy part of the command you'd use to run mypy looks like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants