Commit 26248ef5 authored by Eli Boyarski's avatar Eli Boyarski Committed by Berker Peksag

bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)

parent 4c7532e9
......@@ -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
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment