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

Method get_ref

nextpy/frontend/components/component.py:1024–1033  ·  view source on GitHub ↗

Get the name of the ref for the component. Returns: The ref name.

(self)

Source from the content-addressed store, hash-verified

1022 return code
1023
1024 def get_ref(self) -> str | None:
1025 """Get the name of the ref for the component.
1026
1027 Returns:
1028 The ref name.
1029 """
1030 # do not create a ref if the id is dynamic or unspecified
1031 if self.id is None or isinstance(self.id, BaseVar):
1032 return None
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.

Callers 3

_renderMethod · 0.95
_get_ref_hookMethod · 0.95
get_refsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected