Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26248ef

Browse files
eli-bberkerpeksag
authored andcommitted
bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)
1 parent 4c7532e commit 26248ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/2to3.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ and off individually. They are described here in more detail.
288288
289289
Fixes duplicate types in the second argument of :func:`isinstance`. For
290290
example, ``isinstance(x, (int, int))`` is converted to ``isinstance(x,
291-
(int))``.
291+
int)`` and ``isinstance(x, (int, float, int))`` is converted to
292+
``isinstance(x, (int, float))``.
292293
293294
.. 2to3fixer:: itertools_imports
294295

0 commit comments

Comments
 (0)