diff options
| author | AlexSm <[email protected]> | 2024-03-13 16:36:01 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-13 16:36:01 +0100 |
| commit | 6cb1176da7acfe6571977f06e7d9dc4365cb330b (patch) | |
| tree | c15fcf49a68ba829dc39eef237f94f41d0b55ee6 /contrib/python/ipython/py3/IPython/core/alias.py | |
| parent | 67ba58b766f6ca63d5471aa18728e69d03ffe1ca (diff) | |
| parent | 18c62b66fdaa3ae6c066f720f82b88b28cc3dc91 (diff) | |
Merge pull request #2697 from ydb-platform/mergelibs-240313-1032
Library import 240313-1032
Diffstat (limited to 'contrib/python/ipython/py3/IPython/core/alias.py')
| -rw-r--r-- | contrib/python/ipython/py3/IPython/core/alias.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/python/ipython/py3/IPython/core/alias.py b/contrib/python/ipython/py3/IPython/core/alias.py index 52843b3d774..845e6b7d319 100644 --- a/contrib/python/ipython/py3/IPython/core/alias.py +++ b/contrib/python/ipython/py3/IPython/core/alias.py @@ -30,6 +30,9 @@ from .error import UsageError from traitlets import List, Instance from logging import error +import typing as t + + #----------------------------------------------------------------------------- # Utilities #----------------------------------------------------------------------------- @@ -37,7 +40,7 @@ from logging import error # This is used as the pattern for calls to split_user_input. shell_line_split = re.compile(r'^(\s*)()(\S+)(.*$)') -def default_aliases(): +def default_aliases() -> t.List[t.Tuple[str, str]]: """Return list of shell aliases to auto-define. """ # Note: the aliases defined here should be safe to use on a kernel |
