More pylint 2 fixes (#15565)

## Description:

More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon).

## Checklist:
  - [ ] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
This commit is contained in:
Ville Skyttä authored and Andrey committed 2018-07-20 11:45:20 +03:00
1 parent ea18e06b08
commit 2f7b79764a
242 files changed
+284 -284

No files matched your search

+1 -1
View File
@@ -236,7 +236,7 @@ class OrderedSet(MutableSet):
return set(self) == set(other)
class Throttle(object):
class Throttle:
"""A class for throttling the execution of tasks.
This method decorator adds a cooldown to a method to prevent it from being
+1 -1
View File
@@ -22,7 +22,7 @@ class HideSensitiveDataFilter(logging.Filter):
# pylint: disable=invalid-name
class AsyncHandler(object):
class AsyncHandler:
"""Logging handler wrapper to add an async layer."""
def __init__(self, loop, handler):
+1 -1
View File
@@ -62,7 +62,7 @@ def is_valid_unit(unit: str, unit_type: str) -> bool:
return unit in units
class UnitSystem(object):
class UnitSystem:
"""A container for units of measure."""
def __init__(self: object, name: str, temperature: str, length: str,