Expand description
The Python domain (M2 wave 4.5).
This module root carries the parse-time configuration bundle that the py
object directives, the signature parser and the fix_parens xref roles
read. The directives themselves land on top of this file in the next
task; nothing here walks a doctree.
Modules§
- annotations
- Annotation rendering: the
_parse_annotation/type_to_xrefport (sphinx/domains/python/_annotations.py:30-251, sphinx 9.1.0). - arglist
- Arglist and PEP-695 type-parameter-list parsing for the py domain: the
_parse_arglist/_pseudo_parse_arglist/_parse_type_listport (sphinx/domains/python/_annotations.py:254-619, sphinx 9.1.0) plus thesignature_from_strgrammar (sphinx/util/inspect.py:967-1038) and themulti_line_parameter_listmeasurement (_object.py:291-312). - expr
- Python expression parsing with
ast.unparse-normalized output. - pycode
sphinx.pycode— theModuleAnalyzer/DefinitionFindersurface theliteralinclude:pyobject:filter consumes.
Structs§
- PySig
Config - The object-signature / py-domain configuration the read phase consumes,
lifted out of
crate::config::BuildConfigso the parser depends on ten values instead of the whole build configuration.