MCPcopy Create free account
hub / github.com/MarkFzp/act-plus-plus / __enter__

Method __enter__

dynamixel_client.py:334–338  ·  view source on GitHub ↗

Enables use as a context manager.

(self)

Source from the content-addressed store, hash-verified

332 return value
333
334 def __enter__(self):
335 """Enables use as a context manager."""
336 if not self.is_connected:
337 self.connect()
338 return self
339
340 def __exit__(self, *args):
341 """Enables use as a context manager."""

Callers

nothing calls this directly

Calls 1

connectMethod · 0.95

Tested by

no test coverage detected