()
| 280 | |
| 281 | |
| 282 | def _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 | |
| 308 | def _threadsafety_annotation(level: str) -> nodes.emphasis: |
no outgoing calls
no test coverage detected
searching dependent graphs…