nustack
ReferenceNuinspect

ref

The ref kind: record, parse, verify.

Module nu.inspect.ref.

The ref kind: record, parse, verify.

A Ref names an addressed slot in a Fabric. Every Ref is a builder, so RefRecord is a builder record; the kind exists so a catalogue can carry Forms and Refs alongside each other and a consumer can dispatch on the record's type.

NameCallMeaning
catalogue_refsinspect.catalogue_refs(module)A RefRecord per Ref subclass the module exports, in export order.
parse_refinspect.parse_ref(cls, path='', aliases=())One RefRecord for cls.
verify_refinspect.verify_ref(cls)Every way cls lies about the format. No ref-specific laws yet.

catalogue_refs

A RefRecord per Ref subclass the module exports, in export order.

inspect.catalogue_refs(module)

Path nu.inspect.catalogue_refs. Defined on nu.inspect.ref, bound as a function. Builds tuple[RefRecord, ...].

Arguments

NameTypeDefaultMeaning
moduleModuleType

Undocumented: example.

parse_ref

One RefRecord for cls.

inspect.parse_ref(cls, path='', aliases=())

Path nu.inspect.parse_ref. Defined on nu.inspect.ref, bound as a function. Builds RefRecord.

Arguments

NameTypeDefaultMeaning
clstype
pathstr''
aliasestuple[str, ...]()

Undocumented: example.

verify_ref

Every way cls lies about the format. No ref-specific laws yet.

inspect.verify_ref(cls)

Path nu.inspect.verify_ref. Defined on nu.inspect.ref, bound as a function. Builds list[Violation].

Arguments

NameTypeDefaultMeaning
clstype

Undocumented: example.

On this page