Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs
  • Loading branch information
uriyyo committed Jul 19, 2021
commit 21a30efb8d10d5c1615c8197b4938901ccda5841
3 changes: 2 additions & 1 deletion Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,8 @@ and :func:`issubclass`::

See :ref:`types-union` and :pep:`604` for more details.

(Contributed by Maggie Moss and Philippe Prados in :issue:`41428`.)
(Contributed by Maggie Moss and Philippe Prados in :issue:`41428`,
with additions by Yurii Karabas and Serhiy Storchaka in :issue:`44490`.)


PEP 612: Parameter Specification Variables
Expand Down
14 changes: 0 additions & 14 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,20 +205,6 @@ sqlite3
:meth:`~sqlite3.Connection.set_authorizer`.
(Contributed by Erlend E. Aasland in :issue:`44491`.)

typing
------

* Add :attr:`__parameters__` and :meth:`__getitem__` to :class:`types.Union`.
Fix various :class:`types.Union` compatibility issues with :mod:`typing`
module.

.. code-block:: python
>>> from typing import TypeVar
>>> T = TypeVar("T")
>>> (int | T)[float]
int | float

(Contributed by Yurii Karabas in :issue:`44490`.)


Removed
Expand Down