##// END OF EJS Templates
Improve inference from return type annotations in completer (#14357)...
Improve inference from return type annotations in completer (#14357) Addresses the issue of non-jedi completer not picking type annotations for `__init__()` brought up in https://github.com/ipython/ipython/issues/14336 ![completion_works](https://github.com/ipython/ipython/assets/5832902/73d44e26-123e-4691-87a6-e4d92c6f5061) Follow-up to https://github.com/ipython/ipython/pull/14185 Supports: - [x] `Annotated` - [x] `AnyStr` - [x] `Literal` - [x] `LiteralString` - [x] `NewType` - [x] `Optional` - [x] `Protocol` - [x] `Self` - [x] `TypeAliasType` (`type` keyword in Python 3.12+) - [x] `TypedDict` - [x] `TypeGuard` - [x] `Union` Limitations: - no type narrowing: ambiguous return types from `Union`, and `Optional` will always return all possible values - generics (`TypeVar` and `Generic`) are not support (except for `AnyStr`) - old style `TypeAlias` (deprecated in Python 3.12) is not supported
M Bussonnier -
r28682:7c22387c merge
Show More
Name Size Modified Last Commit Author
/ IPython / core / tests
daft_extension
2x2.jpg Loading ...
2x2.png Loading ...
__init__.py Loading ...
bad_all.py Loading ...
nonascii.py Loading ...
nonascii2.py Loading ...
print_argv.py Loading ...
refbug.py Loading ...
simpleerr.py Loading ...
tclass.py Loading ...
test_alias.py Loading ...
test_application.py Loading ...
test_async_helpers.py Loading ...
test_autocall.py Loading ...
test_compilerop.py Loading ...
test_completer.py Loading ...
test_completerlib.py Loading ...
test_debugger.py Loading ...
test_display.py Loading ...
test_displayhook.py Loading ...
test_events.py Loading ...
test_exceptiongroup_tb.py Loading ...
test_extension.py Loading ...
test_formatters.py Loading ...
test_guarded_eval.py Loading ...
test_handlers.py Loading ...
test_history.py Loading ...
test_hooks.py Loading ...
test_imports.py Loading ...
test_inputsplitter.py Loading ...
test_inputtransformer.py Loading ...
test_inputtransformer2.py Loading ...
test_inputtransformer2_line.py Loading ...
test_interactiveshell.py Loading ...
test_iplib.py Loading ...
test_logger.py Loading ...
test_magic.py Loading ...
test_magic_arguments.py Loading ...
test_magic_terminal.py Loading ...
test_oinspect.py Loading ...
test_page.py Loading ...
test_paths.py Loading ...
test_prefilter.py Loading ...
test_profile.py Loading ...
test_prompts.py Loading ...
test_pylabtools.py Loading ...
test_run.py Loading ...
test_shellapp.py Loading ...
test_splitinput.py Loading ...
test_ultratb.py Loading ...