Registry / type-stubs / networkx-stubs

networkx-stubs

JSON →
library0.0.1pypypi✓ verified 83d ago

Type stubs for NetworkX, enabling static type checking. Current version 0.0.1, pre-release quality, low cadence.

pip install networkx-stubs
INSTALL
IMPORT
SIG · NETWORKX-STUBS
N
networkx-stubs
type-stubspythonv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Graph
from networkx import Graph

Basic usage with NetworkX – stubs provide type hints.

import networkx as nx g = nx.Graph() g.add_edge(1, 2) print(g)
Debug
Known issues
gotchaStubs may not cover all NetworkX functions or parameters; some type errors may be missed.
fix
Check stubs coverage manually or contribute missing stubs.
affects: all
gotchaVersion 0.0.1 is very early; expect incomplete or incorrect stubs.
fix
Use with caution; consider using pyright or mypy without stubs as fallback.
affects: 0.0.1
Errors
Common errors & fixes
Import 'networkx-stubs' could not be resolved
Trying to import networkx-stubs directly as a package.
fix
networkx-stubs is not a separate package to import; install it via pip and it augments networkx stubs automatically.
Module 'networkx' has no attribute 'Graph'
Likely networkx not installed or wrong type stub version.
fix
Ensure both networkx and networkx-stubs are installed: pip install networkx networkx-stubs
Upgrade
Version history
0.0.1latest on PyPI · released Feb 24, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
networkx-stubs — pip install networkx-stubs · libregistry