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
indentcolumns. - enum_
block π - Renders one
enum.Enumsubclass 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.