Skip to content

extension ¤

Classes:

RuntimeObjectsExtension ¤

Bases: Extension

Store runtime objects in Griffe objects' extra attribute.

Methods:

  • on_instance

    Get runtime object corresponding to Griffe object, store it in extra namespace.

on_instance ¤

on_instance(
    *, node: AST | ObjectNode, obj: Object, **kwargs: Any
) -> None

Get runtime object corresponding to Griffe object, store it in extra namespace.