MCPcopy Index your code
hub / github.com/dialect-app/dialect / get

Method get

dialect/session.py:28–32  ·  view source on GitHub ↗

Return an active instance of Session.

()

Source from the content-addressed store, hash-verified

26
27 @staticmethod
28 def get() -> Session:
29 """Return an active instance of Session."""
30 if Session.instance is None:
31 Session.instance = Session.new()
32 return Session.instance
33
34 @staticmethod
35 def get_response(session: Session, result: Gio.AsyncResult):

Callers 15

_on_showMethod · 0.45
__init__Method · 0.45
_switch_translatorMethod · 0.45
_switch_ttsMethod · 0.45
do_activateMethod · 0.45
setup_actionsMethod · 0.45
_on_pronunciationMethod · 0.45
get_lang_nameFunction · 0.45
setupMethod · 0.45
load_translatorMethod · 0.45

Calls 1

newMethod · 0.45

Tested by

no test coverage detected