MCPcopy Create free account
hub / github.com/alibaba/GraphScope / __enter__

Method __enter__

python/graphscope/client/session.py:785–791  ·  view source on GitHub ↗

Context management protocol. Returns self and register self as default session.

(self)

Source from the content-addressed store, hash-verified

783
784 # Context manager
785 def __enter__(self):
786 """Context management protocol.
787 Returns self and register self as default session.
788 """
789 self._check_closed()
790 self.as_default()
791 return self
792
793 def __exit__(self, exc_type, exc_value, exc_tb):
794 """Unregister self from the default session,

Callers 1

as_defaultMethod · 0.45

Calls 2

_check_closedMethod · 0.95
as_defaultMethod · 0.95

Tested by

no test coverage detected