pg.typing.ForwardRef¶
Accessible via pg.typing.ForwardRef.
- class ForwardRef(module, qualname)[source]¶
Bases:
pg.FormattableForward type reference.
Methods:
Returns the forward reference as an annotation.
format([compact, verbose, root_indent])Format this object.
Attributes:
Returns the resolved reference class..
Returns the module where the name is being referenced.
Returns the name of the type reference.
Returns the qualified name of the reference.
Returns True if the symbol for the name is resolved..
Returns the type id of the reference.
- format(compact=False, verbose=True, root_indent=0, **kwargs)[source]¶
Format this object.
- Return type:
- property module: ModuleType[source]¶
Returns the module where the name is being referenced.