From 26248ef58dcf49619930ffa2e050ffa687a88601 Mon Sep 17 00:00:00 2001 From: Eli Boyarski Date: Mon, 24 Jul 2017 03:39:07 +0300 Subject: bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699) --- Doc/library/2to3.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst index 4c9a528..1ab05a6 100644 --- a/Doc/library/2to3.rst +++ b/Doc/library/2to3.rst @@ -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 -- cgit v0.12