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

Function _unstable_api_annotation

Doc/tools/extensions/c_annotations.py:282–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280
281
282def _unstable_api_annotation() -> nodes.admonition:
283 ref_node = addnodes.pending_xref(
284 "Unstable API",
285 nodes.Text(sphinx_gettext("Unstable API")),
286 refdomain="std",
287 reftarget="unstable-c-api",
288 reftype="ref",
289 refexplicit="False",
290 )
291 emph_node = nodes.emphasis(
292 "This is ",
293 sphinx_gettext("This is") + " ",
294 ref_node,
295 nodes.Text(
296 sphinx_gettext(
297 ". It may change without warning in minor releases."
298 )
299 ),
300 )
301 return nodes.admonition(
302 "",
303 emph_node,
304 classes=["unstable-c-api", "warning"],
305 )
306
307
308def _threadsafety_annotation(level: str) -> nodes.emphasis:

Callers 1

add_annotationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…