MCPcopy Create free account
hub / github.com/DeepL/deepl-python / __exit__

Method __exit__

tests/conftest.py:286–292  ·  view source on GitHub ↗
(self, exc_type, exc_val, exc_tb)

Source from the content-addressed store, hash-verified

284 return self._created_glossary
285
286 def __exit__(self, exc_type, exc_val, exc_tb):
287 try:
288 self.deepl_client.delete_multilingual_glossary(
289 self._created_glossary.glossary_id
290 )
291 except deepl.DeepLException:
292 pass
293
294
295class CreateManagedGlossaryFunc(Protocol):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected