MCPcopy Create free account
hub / github.com/dot-agent/nextpy / get_refs

Method get_refs

nextpy/frontend/components/component.py:1035–1047  ·  view source on GitHub ↗

Get the refs for the children of the component. Returns: The refs for the children.

(self)

Source from the content-addressed store, hash-verified

1033 return format.format_ref(self.id)
1034
1035 def get_refs(self) -> Set[str]:
1036 """Get the refs for the children of the component.
1037
1038 Returns:
1039 The refs for the children.
1040 """
1041 refs = set()
1042 ref = self.get_ref()
1043 if ref is not None:
1044 refs.add(ref)
1045 for child in self.children:
1046 refs |= child.get_refs()
1047 return refs
1048
1049 def get_custom_components(
1050 self, seen: set[str] | None = None

Callers 3

get_refsMethod · 0.45
_get_form_refsMethod · 0.45
_get_form_refsMethod · 0.45

Calls 3

get_refMethod · 0.95
setFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected