MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / get_handle

Function get_handle

python/nemo_relay/scope.py:72–83  ·  view source on GitHub ↗

Return the current top-of-stack ``ScopeHandle``. Returns: ScopeHandle: The scope currently at the top of the active scope stack. Notes: If the current Python context does not yet have a scope stack, one is created automatically before the handle lookup.

()

Source from the content-addressed store, hash-verified

70
71
72def get_handle() -> ScopeHandle:
73 """Return the current top-of-stack ``ScopeHandle``.
74
75 Returns:
76 ScopeHandle: The scope currently at the top of the active scope stack.
77
78 Notes:
79 If the current Python context does not yet have a scope stack, one is
80 created automatically before the handle lookup.
81 """
82 _ensure_scope_stack()
83 return _native_get_handle()
84
85
86def push(

Callers

nothing calls this directly

Calls 1

_ensure_scope_stackFunction · 0.85

Tested by

no test coverage detected