Unverified Kaydet (Commit) a645b23f authored tarafından Berker Peksag's avatar Berker Peksag Kaydeden (comit) GitHub

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

(cherry picked from commit 26248ef5)
üst 70b2f879
......@@ -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