MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / __init__

Method __init__

keepercommander/attachment.py:143–146  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

141
142class BytesUploadTask(UploadTask):
143 def __init__(self, data):
144 super().__init__()
145 self.data = data if isinstance(data, bytes) else b''
146 self.size = len(self.data)
147
148 @contextlib.contextmanager
149 def open(self):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected