mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)
This commit is contained in:
parent
4c7532e96d
commit
26248ef58d
1 changed files with 2 additions and 1 deletions
|
|
@ -288,7 +288,8 @@ and off individually. They are described here in more detail.
|
||||||
|
|
||||||
Fixes duplicate types in the second argument of :func:`isinstance`. For
|
Fixes duplicate types in the second argument of :func:`isinstance`. For
|
||||||
example, ``isinstance(x, (int, int))`` is converted to ``isinstance(x,
|
example, ``isinstance(x, (int, int))`` is converted to ``isinstance(x,
|
||||||
(int))``.
|
int)`` and ``isinstance(x, (int, float, int))`` is converted to
|
||||||
|
``isinstance(x, (int, float))``.
|
||||||
|
|
||||||
.. 2to3fixer:: itertools_imports
|
.. 2to3fixer:: itertools_imports
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue