From 8b0b59b69595ac6b292016abfa131e7aa7f138de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Wed, 18 Jan 2017 14:27:06 -0800 Subject: [PATCH] Remove unused `enumerate()` call --- python2/typing.py | 2 +- src/typing.py | 2 +- tox.ini | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python2/typing.py b/python2/typing.py index 9d24306e..8aae5a2b 100644 --- a/python2/typing.py +++ b/python2/typing.py @@ -618,7 +618,7 @@ def _subs_tree(cls, tvars=None, args=None): # ... then continue replacing down the origin chain. for ocls in orig_chain: new_tree_args = [] - for i, arg in enumerate(ocls.__args__): + for arg in ocls.__args__: new_tree_args.append(_replace_arg(arg, ocls.__parameters__, tree_args)) tree_args = new_tree_args return tree_args diff --git a/src/typing.py b/src/typing.py index bca3a2de..3edb9e2f 100644 --- a/src/typing.py +++ b/src/typing.py @@ -563,7 +563,7 @@ def _subs_tree(cls, tvars=None, args=None): # ... then continue replacing down the origin chain. for ocls in orig_chain: new_tree_args = [] - for i, arg in enumerate(ocls.__args__): + for arg in ocls.__args__: new_tree_args.append(_replace_arg(arg, ocls.__parameters__, tree_args)) tree_args = new_tree_args return tree_args diff --git a/tox.ini b/tox.ini index 42698b3e..2fcbd67b 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,6 @@ changedir = python2 builtins = basestring, unicode ignore = # temporary ignores until we sort it out - B007, E128, E129, E501,