Narrow scope of various pylint inline disables (#15364)

* Narrow scope of various pylint inline disables

* Whitespace tweaks
This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2018-10-10 12:17:11 +02:00
1 parent 78c38749ab
commit 707b7c202d
30 files changed
+52 -75

No files matched your search

+2 -2
View File
@@ -25,7 +25,7 @@ from typing import Any
def patch_weakref_tasks() -> None:
"""Replace weakref.WeakSet to address Python 3 bug."""
# pylint: disable=no-self-use, protected-access, bare-except
# pylint: disable=no-self-use, protected-access
import asyncio.tasks
class IgnoreCalls:
@@ -38,7 +38,7 @@ def patch_weakref_tasks() -> None:
asyncio.tasks.Task._all_tasks = IgnoreCalls() # type: ignore
try:
del asyncio.tasks.Task.__del__
except: # noqa: E722
except: # noqa: E722 pylint: disable=bare-except
pass