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

Method get_subapp

examples/subcommands_app.py:58–60  ·  view source on GitHub ↗
(cls, main_app: Application)

Source from the content-addressed store, hash-verified

56
57 @classmethod
58 def get_subapp(cls, main_app: Application) -> Application:
59 main_app.clear_instance()
60 return cls.instance(parent=main_app) # type: ignore[no-any-return]
61
62
63class MainApp(Application):

Callers

nothing calls this directly

Calls 2

clear_instanceMethod · 0.80
instanceMethod · 0.80

Tested by

no test coverage detected