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

Method __init__

tests/conftest.py:272–281  ·  view source on GitHub ↗
(
        self,
        deepl_client,
        glossary_name: str,
        dictionaries: List[MultilingualGlossaryDictionaryEntries],
    )

Source from the content-addressed store, hash-verified

270 """
271
272 def __init__(
273 self,
274 deepl_client,
275 glossary_name: str,
276 dictionaries: List[MultilingualGlossaryDictionaryEntries],
277 ):
278 self.deepl_client = deepl_client
279 self._created_glossary = deepl_client.create_multilingual_glossary(
280 glossary_name, dictionaries
281 )
282
283 def __enter__(self) -> MultilingualGlossaryInfo:
284 return self._created_glossary

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected