MCPcopy Index your code
hub / github.com/python/cpython / setup

Function setup

Doc/tools/extensions/c_annotations.py:441–454  ·  view source on GitHub ↗
(app: Sphinx)

Source from the content-addressed store, hash-verified

439
440
441def setup(app: Sphinx) -> ExtensionMetadata:
442 app.add_config_value("refcount_file", "", "env", types={str})
443 app.add_config_value("stable_abi_file", "", "env", types={str})
444 app.add_config_value("threadsafety_file", "", "env", types={str})
445 app.add_directive("limited-api-list", LimitedAPIList)
446 app.add_directive("corresponding-type-slot", CorrespondingTypeSlot)
447 app.connect("builder-inited", init_annotations)
448 app.connect("doctree-read", add_annotations)
449
450 return {
451 "version": "1.0",
452 "parallel_read_safe": True,
453 "parallel_write_safe": True,
454 }

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…