mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-02-01 11:22:15 -05:00
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
71 lines
1.9 KiB
Python
Generated
71 lines
1.9 KiB
Python
Generated
"""
|
|
This type stub file was generated by pyright.
|
|
"""
|
|
|
|
from IPython.core.application import BaseIPythonApplication
|
|
from IPython.core.crashhandler import CrashHandler
|
|
from IPython.core.shellapp import InteractiveShellApp
|
|
from traitlets.config.application import catch_config_error
|
|
|
|
"""
|
|
The :class:`~traitlets.config.application.Application` object for the command
|
|
line :command:`ipython` program.
|
|
"""
|
|
_examples = ...
|
|
|
|
class IPAppCrashHandler(CrashHandler):
|
|
"""sys.excepthook for IPython itself, leaves a detailed report on disk."""
|
|
|
|
def __init__(self, app) -> None: ...
|
|
def make_report(self, traceback): # -> str:
|
|
"""Return a string containing a crash report."""
|
|
...
|
|
|
|
flags = ...
|
|
frontend_flags = ...
|
|
addflag = ...
|
|
classic_config = ...
|
|
aliases = ...
|
|
|
|
class LocateIPythonApp(BaseIPythonApplication):
|
|
description = ...
|
|
subcommands = ...
|
|
def start(self): ...
|
|
|
|
class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):
|
|
name = ...
|
|
description = ...
|
|
crash_handler_class = IPAppCrashHandler
|
|
examples = ...
|
|
flags = ...
|
|
aliases = ...
|
|
classes = ...
|
|
interactive_shell_class = ...
|
|
subcommands = ...
|
|
auto_create = ...
|
|
quick = ...
|
|
display_banner = ...
|
|
force_interact = ...
|
|
something_to_run = ...
|
|
@catch_config_error
|
|
def initialize(self, argv=...): # -> None:
|
|
"""Do actions after construct, but before starting the app."""
|
|
...
|
|
def init_shell(self): # -> None:
|
|
"""initialize the InteractiveShell instance"""
|
|
...
|
|
def init_banner(self): # -> None:
|
|
"""optionally display the banner"""
|
|
...
|
|
def start(self): ...
|
|
|
|
def load_default_config(ipython_dir=...): # -> Instance | Any:
|
|
"""Load the default config file from the default ipython_dir.
|
|
|
|
This is useful for embedded shells.
|
|
"""
|
|
...
|
|
|
|
launch_new_instance = ...
|
|
if __name__ == "__main__": ...
|