Skip to main content

Module render

Module render 

Expand description

Rendering: one .pyi stub, composed from the live module surface and the annotation table.

FunctionsΒ§

annotation_source πŸ”’
Collects the annotation text owned by one live module.
banner πŸ”’
The banner every generated stub opens with.
callable_block πŸ”’
Renders one function or method.
class_block πŸ”’
Renders one class.
docstring_block πŸ”’
Renders a docstring at indent columns.
enum_block πŸ”’
Renders one enum.Enum subclass and its members.
filtered_import πŸ”’
Filters one candidate from-import line to names used by a module.
identifier_used πŸ”’
Whether identifier appears as a whole identifier in text.
module_imports πŸ”’
Renders only the candidate imports used by one module.
module_prelude πŸ”’
Selects type aliases and variables referenced by one module’s annotations.
property_block πŸ”’
Renders one @property.
render_module πŸ”’
Renders one of the four generated package stubs.