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.

type-stubs
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.

import objgraph_stubs

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 footguns
gotchatypes-objgraph only provides type hints; it does not replace the objgraph runtime package. You must install objgraph separately.
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.
gotchaSome objgraph functions like 'show_most_common_types()' may not have complete type annotations (e.g., return types partially unknown).
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
19 hits · last 30 days
ahrefsbot
4
claudebot
4
gptbot
3
amazonbot
3
bingbot
1
Resources