Skip to content

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

Closed
@rentruewang

Description

@rentruewang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions