-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
886b2e5
commit b973542
Showing
7 changed files
with
89 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
Misc/NEWS.d/next/Core and Builtins/2020-11-20-00-57-47.bpo-42195.HeqcpS.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
The ``__args__`` of the parameterized generics for :data:`typing.Callable` | ||
and :class:`collections.abc.Callable` are now consistent. The ``__args__`` | ||
for :class:`collections.abc.Callable` are now flattened while | ||
:data:`typing.Callable`'s have not changed. To allow this change, | ||
:class:`types.GenericAlias` can now be subclassed and | ||
and :class:`collections.abc.Callable` are now consistent. The ``__args__`` | ||
for :class:`collections.abc.Callable` are now flattened while | ||
:data:`typing.Callable`'s have not changed. To allow this change, | ||
:class:`types.GenericAlias` can now be subclassed and | ||
``collections.abc.Callable``'s ``__class_getitem__`` will now return a subclass | ||
of ``types.GenericAlias``. Tests for typing were also updated to not subclass | ||
of ``types.GenericAlias``. Tests for typing were also updated to not subclass | ||
things like ``Callable[..., T]`` as that is not a valid base class. Finally, | ||
both ``Callable``\ s no longer validate their ``argtypes``, in | ||
``Callable[[argtypes], resulttype]`` to prepare for :pep:`612`. Patch by Ken Jin. | ||
|
||
both ``Callable``\ s no longer validate their ``argtypes``, in | ||
``Callable[[argtypes], resulttype]`` to prepare for :pep:`612`. Patch by Ken Jin. |
2 changes: 1 addition & 1 deletion
2
Misc/NEWS.d/next/Library/2020-10-02-10-19-49.bpo-41907.wiIEsz.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
fix `format()` behavior for `IntFlag` | ||
fix ``format()`` behavior for ``IntFlag`` |
2 changes: 1 addition & 1 deletion
2
Misc/NEWS.d/next/Library/2020-12-08-22-43-35.bpo-42678.ba9ktU.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
`Enum`: call `__init_subclass__` after members have been added | ||
``Enum``: call ``__init_subclass__`` after members have been added |
2 changes: 1 addition & 1 deletion
2
Misc/NEWS.d/next/Library/2020-12-10-18-36-52.bpo-39717.sK2u0w.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[tarfile] update nested exception raising to use `from None` or `from e` | ||
[tarfile] update nested exception raising to use ``from None`` or ``from e`` |
4 changes: 2 additions & 2 deletions
4
Misc/NEWS.d/next/Library/2020-12-15-10-00-04.bpo-42644.XgLCNx.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
`logging.disable` will now validate the types and value of its parameter. It | ||
also now accepts strings representing the levels (as does `loging.setLevel`) | ||
``logging.disable`` will now validate the types and value of its parameter. It | ||
also now accepts strings representing the levels (as does ``loging.setLevel``) | ||
instead of only the numerical values. |