Lint exclusions (#28655)

* Remove malformed pylint disable markers

* Remove some unused imports

* Remove some unneeded lint exclusions

* Remove more unneeded lint exclusions

* Add specific codes to all noqa's
This commit is contained in:
Ville Skyttä authored and Fabian Affolter committed 2019-11-16 10:22:07 +01:00
1 parent 2aee366a1f
commit d88ca0f5cb
73 files changed
+113 -142

No files matched your search

+1 -1
View File
@@ -165,7 +165,7 @@ class RunThreadsafeTests(TestCase):
def test_run_callback_threadsafe_with_invalid(self):
"""Test callback submission from thread to event loop on invalid."""
callback = lambda: self.target_callback(invalid=True) # noqa
callback = lambda: self.target_callback(invalid=True) # noqa: E731
future = self.loop.run_in_executor(None, callback)
with self.assertRaises(ValueError) as exc_context:
self.loop.run_until_complete(future)