##// 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
/ docs / source / whatsnew
pr
development.rst Loading ...
github-stats-0.11.rst Loading ...
github-stats-0.12.rst Loading ...
github-stats-0.13.rst Loading ...
github-stats-1.0.rst Loading ...
github-stats-2.0.rst Loading ...
github-stats-3.rst Loading ...
github-stats-4.rst Loading ...
github-stats-5.rst Loading ...
github-stats-6.rst Loading ...
github-stats-7.rst Loading ...
github-stats-8.rst Loading ...
index.rst Loading ...
version0.10.rst Loading ...
version0.11.rst Loading ...
version0.12.rst Loading ...
version0.13.rst Loading ...
version0.8.rst Loading ...
version0.9.rst Loading ...
version1.0.rst Loading ...
version2.0.rst Loading ...
version3.rst Loading ...
version3_widget_migration.rst Loading ...
version4.rst Loading ...
version5.rst Loading ...
version6.rst Loading ...
version7.rst Loading ...
version8.rst Loading ...

Documenting What's New

When making a new pull request that either adds a new feature, or makes a
backwards-incompatible change to IPython, please add a new .rst file in this
directory documenting this change as a part of your Pull Request.

This will allow multiple Pull Requests to do the same without conflicting with
one another. Periodically, IPython developers with commit rights will run a
script and populate development.rst
with the contents of this directory, and clean it up.

Files which describe new features can have any name, such as
antigravity-feature.rst, whereas backwards incompatible changes must have
have a filename starting with incompat-, such as
incompat-switching-to-perl.rst. Our "What's new" files always have two
sections, and this prefix scheme will make sure that the backwards incompatible
changes get routed to their proper section.

To merge these files into :file:whatsnew/development.rst, run the script :file:tools/update_whatsnew.py.