Skip to content

types-networkx is not installed by mypy --install-types #18365

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
rentruewang opened this issue Dec 29, 2024 · 4 comments · Fixed by #18366
Closed

types-networkx is not installed by mypy --install-types #18365

rentruewang opened this issue Dec 29, 2024 · 4 comments · Fixed by #18366
Labels
bug mypy got something wrong

Comments

@rentruewang
Copy link

Bug Report

mypy --install-types missing some libraries' type stubs.

To Reproduce

  1. A project that imports and uses networkx.
  2. mypy --install-types .
  3. Does not install type stubs for networkx.
import networkx
graph = networkx.Graph()

Expected Behavior

mypy --install-types . should install types-networkx like it does for many different libraries.

Actual Behavior

Does not

Your Environment

  • Python version used: 3.12 (but doesn't work for lower versions as well)
  • Mypy version used: Not working for both 1.13, 1.14
  • Mypy command-line flags: --install-types .
  • Mypy configuration options from mypy.ini (and other config files):
show_error_codes = true
exclude = "tests"
check_untyped_defs = true
@rentruewang
Copy link
Author

@hauntsaninja Wow that is quick. However, I have verified that types-networkx is indeed still not installed when I tested a new virtualenv.

@hauntsaninja
Copy link
Collaborator

Works for me on latest master. Are you sure you installed mypy from latest master correctly? (Try mypy --version)

@rentruewang
Copy link
Author

rentruewang commented Dec 30, 2024

@hauntsaninja yes lol i have forgotten to pull. I'm wondering tho, where in the code is networkx included? I don't see it in your commit. Is it included by setuptools?

Also close #18375 because that's before i see the reply.

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

Successfully merging a pull request may close this issue.

2 participants