Registry / type-stubs / types-objgraph

types-objgraph

JSON →
library3.6.0.20260408pypypiunverified

Typing stubs for the objgraph library, providing type hints for objgraph functions. Version 3.6.0.20260408 corresponds to objgraph 3.6.x. Released as part of typeshed, updated periodically.

pip install types-objgraph
INSTALL
IMPORT
SIG · TYPES-OBJGRAPH
T
types-objgraph
type-stubspythonv3.6.0.20260408
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.

objgraph
✓ import objgraph_stubs
✗ import objgraph

Basic usage of objgraph with type stubs. The stubs just provide type annotations; runtime behavior is unchanged.

import objgraph # Count number of list objects count = objgraph.count('list') print(f"Number of list objects: {count}") # Show growth of objects between two points import gc gc.collect() before = {id(o): o for o in gc.get_objects()} # ... some code ... gc.collect() diff = objgraph.growth(limit=10) print(diff)
Debug
Known issues
gotchatypes-objgraph only provides type hints; it does not replace the objgraph runtime package. You must install objgraph separately.
fix
Ensure 'objgraph' is in your dependencies (e.g., pip install objgraph).
affects: all
gotchaThe stub versions (3.6.0.20260408) mirror objgraph's version with a date suffix. Do not expect all objgraph 3.x features to be stubbed if the stub package is outdated.
fix
Check typeshed updates or contribute missing stubs.
affects: all
gotchaSome objgraph functions like 'show_most_common_types()' may not have complete type annotations (e.g., return types partially unknown).
fix
Use 'Any' or cast if strict type checking fails.
affects: all
Upgrade
Version history
3.6.0.20260408latest on PyPI · released Apr 8, 2026
Audit
Dependencies
objgraphrequiredRuntime dependency; stubs provide type hints for objgraph
Agent activity
36 hits · last 30 days
node
30
OpenAI (training)
1
Resources
types-objgraph — pip install types-objgraph · libregistry