MCPcopy Create free account
hub / github.com/ipython/traitlets / get_subapp_instance

Method get_subapp_instance

tests/config/test_argcomplete.py:51–53  ·  view source on GitHub ↗
(cls, app: Application)

Source from the content-addressed store, hash-verified

49class SubApp2(ArgcompleteApp):
50 @classmethod
51 def get_subapp_instance(cls, app: Application) -> Application:
52 app.clear_instance() # since Application is singleton, need to clear main app
53 return cls.instance(parent=app) # type: ignore[no-any-return]
54
55
56class MainApp(ArgcompleteApp):

Callers

nothing calls this directly

Calls 2

clear_instanceMethod · 0.80
instanceMethod · 0.80

Tested by

no test coverage detected