Skip to content
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

mypy --install-types reports unrecognized arguments #10249

Closed
ssbarnea opened this issue Mar 27, 2021 · 2 comments
Closed

mypy --install-types reports unrecognized arguments #10249

ssbarnea opened this issue Mar 27, 2021 · 2 comments

Comments

@ssbarnea
Copy link
Sponsor Contributor

Apparently current documentation is mentioning a CLI argument that is not supproted by the lastest version of mypy:

mypy: error: unrecognized arguments: --install-types

Bug Report

$ mypy --version
mypy 0.812

$ mypy --install-types
usage: mypy [-h] [-v] [-V] [more options; see below]
            [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
mypy: error: unrecognized arguments: --install-types
@ssbarnea ssbarnea added the bug mypy got something wrong label Mar 27, 2021
@ethanhs
Copy link
Collaborator

ethanhs commented Mar 27, 2021

The docs you point to are the /latest/ route in the URL so those are built from git HEAD. This flag isn't released yet. I recommend using /stable/ instead. I certainly understand this might be confusing, I wonder if we could modify readthedocs just on the development docs to leave a note or something...

@ethanhs ethanhs added documentation and removed bug mypy got something wrong labels Mar 27, 2021
@ssbarnea
Copy link
Sponsor Contributor Author

I was afraid it may be something like this. I had the same problem on my own libraries. The only practical solution was to assure documented features are released soon after they are merged. Switching between various versions is not practical, especially due to search engine indexing.

Some projects do also mention the version on which particular options were added, making easier to spot a feature that you may not yet have.

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

No branches or pull requests

2 participants