Upgrade pylint to 2.6.0 (#39363)

This commit is contained in:
Ville Skyttä 2020-08-29 08:59:24 +03:00 committed by GitHub
parent 67de1d3466
commit 1bf2c4d976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 77 additions and 86 deletions

View file

@ -64,7 +64,7 @@ class DateTimeJSONEncoder(json.JSONEncoder):
Additionally add encoding for datetime objects as isoformat.
"""
def default(self, o): # pylint: disable=method-hidden
def default(self, o):
"""Implement encoding logic."""
if isinstance(o, datetime):
return o.isoformat()