AliasAttrDocumenter¶
Qualified name: manim\_pymunk.utils.docbuild.autoaliasattr\_directive.AliasAttrDocumenter
- class AliasAttrDocumenter(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]¶
Bases:
DirectiveDirective which replaces Sphinx’s Autosummary for module-level attributes: instead, it manually crafts a new “Type Aliases” section, where all the module-level attributes which are explicitly annotated as
TypeAliasare considered as such, for their use all around the Manim docs.These type aliases are separated from the “regular” module-level attributes, which get their traditional “Module Attributes” section autogenerated with Sphinx’s Autosummary under “Type Aliases”.
See
docs/source/_templates/autosummary/module.rstto watch this directive in action.See
parse_module_attributes()for more information on how the modules are parsed to obtain theTypeAliasinformation and separate it from the other attributes.Methods
Attributes
final_argument_whitespaceMay the final argument contain whitespace?
May the directive have content?
option_specMapping of option names to validator functions.
optional_argumentsNumber of optional arguments after the required arguments.
Number of required directive arguments.
- has_content = True¶
May the directive have content?
- objtype = 'autoaliasattr'¶
- required_arguments = 1¶
Number of required directive arguments.