Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
guidopetri committed Feb 6, 2024
1 parent 6386905 commit 65352f7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions redash/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ class JSONEncoder(json.JSONEncoder):
"""Adapter for `json.dumps`."""

def __init__(self, **kwargs):
self.encoders = [
m.custom_json_encoder
for m in sys.modules.values()
if hasattr(m, "custom_json_encoder")
]
self.encoders = [m.custom_json_encoder for m in sys.modules.values() if hasattr(m, "custom_json_encoder")]
super().__init__(**kwargs)

def default(self, o):
Expand Down

0 comments on commit 65352f7

Please sign in to comment.