]> granicus.if.org Git - python/commitdiff
bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)
authorEli Boyarski <eli.boyarski@gmail.com>
Mon, 24 Jul 2017 00:39:07 +0000 (03:39 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 24 Jul 2017 00:39:07 +0000 (03:39 +0300)
Doc/library/2to3.rst

index 4c9a528d42e703bb4fd55f8d025cb08d9ac5f5a5..1ab05a62ad458fbbf38a56fd11e1fbaf0b443474 100644 (file)
@@ -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