{"id":27492,"library":"types-objgraph","title":"types-objgraph","description":"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.","status":"active","version":"3.6.0.20260408","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["type-stubs","objgraph","typeshed","typing"],"install":[{"cmd":"pip install types-objgraph","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Runtime dependency; stubs provide type hints for objgraph","package":"objgraph","optional":false}],"imports":[{"wrong":"import objgraph","symbol":"objgraph","correct":"import objgraph_stubs"}],"quickstart":{"code":"import objgraph\n\n# Count number of list objects\ncount = objgraph.count('list')\nprint(f\"Number of list objects: {count}\")\n\n# Show growth of objects between two points\nimport gc\ngc.collect()\nbefore = {id(o): o for o in gc.get_objects()}\n# ... some code ...\ngc.collect()\ndiff = objgraph.growth(limit=10)\nprint(diff)","lang":"python","description":"Basic usage of objgraph with type stubs. The stubs just provide type annotations; runtime behavior is unchanged."},"warnings":[{"fix":"Ensure 'objgraph' is in your dependencies (e.g., pip install objgraph).","message":"types-objgraph only provides type hints; it does not replace the objgraph runtime package. You must install objgraph separately.","severity":"gotcha","affected_versions":"all"},{"fix":"Check typeshed updates or contribute missing stubs.","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'Any' or cast if strict type checking fails.","message":"Some objgraph functions like 'show_most_common_types()' may not have complete type annotations (e.g., return types partially unknown).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'3.6':21 '3.6.0.20260408':17 'correspond':18 'function':15 'hint':12 'librari':9 'objgraph':3,8,14,20,33 'part':25 'period':29 'provid':10 'releas':23 'stub':5,32 'type':2,4,11,31,35 'type-stub':30 'types-objgraph':1 'typesh':27,34 'updat':28 'version':16 'x':22","created_at":"2026-05-01T17:46:32.160551+00:00","updated_at":"2026-05-01T17:46:32.160551+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'objgraph_stubs'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/typeshed-internal/stub_uploader","docs":null,"changelog":"https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/objgraph.md","pypi":"https://pypi.org/project/types-objgraph/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}