##// 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
magics
profile
tests
__init__.py Loading ...
alias.py Loading ...
application.py Loading ...
async_helpers.py Loading ...
autocall.py Loading ...
builtin_trap.py Loading ...
compilerop.py Loading ...
completer.py Loading ...
completerlib.py Loading ...
crashhandler.py Loading ...
debugger.py Loading ...
display.py Loading ...
display_functions.py Loading ...
display_trap.py Loading ...
displayhook.py Loading ...
displaypub.py Loading ...
error.py Loading ...
events.py Loading ...
excolors.py Loading ...
extensions.py Loading ...
formatters.py Loading ...
getipython.py Loading ...
guarded_eval.py Loading ...
history.py Loading ...
historyapp.py Loading ...
hooks.py Loading ...
inputsplitter.py Loading ...
inputtransformer.py Loading ...
inputtransformer2.py Loading ...
interactiveshell.py Loading ...
latex_symbols.py Loading ...
logger.py Loading ...
macro.py Loading ...
magic.py Loading ...
magic_arguments.py Loading ...
oinspect.py Loading ...
page.py Loading ...
payload.py Loading ...
payloadpage.py Loading ...
prefilter.py Loading ...
profileapp.py Loading ...
profiledir.py Loading ...
prompts.py Loading ...
pylabtools.py Loading ...
release.py Loading ...
shellapp.py Loading ...
splitinput.py Loading ...
ultratb.py Loading ...
usage.py Loading ...