Glossary¶
This section defines central terms used in this documentation.
- doctype¶
A type description of a type in a docstring, such as of a parameter, return value, or attribute. Any annotation expression is valid as a doctype, but doctypes support an extended syntax with natural language variants.
- type name¶
The name of a single (atomic) type. A type name can include a type prefix. An annotation expression can contain multiple type names. For example, the annotation expression
collections.abc.Iterable[int or float]consists of the three namescollections.abc.Iterable,intandfloat.- type prefix¶
A dot-delimited prefix that is part of a type name. The prefix can describe the full path of a type or consist of an alias. For example,
collections.abc.Iterablehas the type prefixcollections.abc.np.inthas the prefixnpwhich may be an alias fornumpy. Type prefixes can be defined in the configuration or are inferred by docstub from import statements it can see.