Skip to content

Commit

Permalink
Split long line
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Jan 14, 2025
1 parent 56e435c commit 82dcb36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion large_image/tilesource/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,9 @@ class TileSourceHistogramHandler(tornado.web.RequestHandler):

def get(self) -> None:
kwargs = {k: ast.literal_eval(self.get_argument(k)) for k in self.request.arguments}
histogram = manager.tile_source.histogram(**kwargs).get('histogram', [{}]) # type: ignore[attr-defined]
histogram = manager.tile_source.histogram( # type: ignore[attr-defined]

Check warning on line 493 in large_image/tilesource/jupyter.py

View check run for this annotation

Codecov / codecov/patch

large_image/tilesource/jupyter.py#L493

Added line #L493 was not covered by tests
**kwargs,
).get('histogram', [{}])
self.write(json.dumps(histogram, cls=NumpyEncoder))
self.set_header('Content-Type', 'application/json')

Check warning on line 497 in large_image/tilesource/jupyter.py

View check run for this annotation

Codecov / codecov/patch

large_image/tilesource/jupyter.py#L496-L497

Added lines #L496 - L497 were not covered by tests

Expand Down

0 comments on commit 82dcb36

Please sign in to comment.