Skip to content

Commit 44421d9

Browse files
westurnerCarreau
authored andcommitted
CLN: core/display: reformat per darker
1 parent e6fc6aa commit 44421d9

File tree

1 file changed

+35
-14
lines changed

1 file changed

+35
-14
lines changed

IPython/core/display.py

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,35 @@
2121
from . import display_functions
2222

2323

24-
__all__ = ['display_pretty', 'display_html', 'display_markdown',
25-
'display_svg', 'display_png', 'display_jpeg', 'display_webp',
26-
'display_latex', 'display_json',
27-
'display_javascript', 'display_pdf', 'DisplayObject', 'TextDisplayObject',
28-
'Pretty', 'HTML', 'Markdown', 'Math', 'Latex', 'SVG', 'ProgressBar', 'JSON',
29-
'GeoJSON', 'Javascript', 'Image', 'set_matplotlib_formats',
30-
'set_matplotlib_close',
31-
'Video']
24+
__all__ = [
25+
"display_pretty",
26+
"display_html",
27+
"display_markdown",
28+
"display_svg",
29+
"display_png",
30+
"display_jpeg",
31+
"display_webp",
32+
"display_latex",
33+
"display_json",
34+
"display_javascript",
35+
"display_pdf",
36+
"DisplayObject",
37+
"TextDisplayObject",
38+
"Pretty",
39+
"HTML",
40+
"Markdown",
41+
"Math",
42+
"Latex",
43+
"SVG",
44+
"ProgressBar",
45+
"JSON",
46+
"GeoJSON",
47+
"Javascript",
48+
"Image",
49+
"set_matplotlib_formats",
50+
"set_matplotlib_close",
51+
"Video",
52+
]
3253

3354
_deprecated_names = ["display", "clear_output", "publish_display_data", "update_display", "DisplayHandle"]
3455

@@ -215,7 +236,7 @@ def display_webp(*objs, **kwargs):
215236
metadata : dict (optional)
216237
Metadata to be associated with the specific mimetype output.
217238
"""
218-
_display_mimetype('image/webp', objs, **kwargs)
239+
_display_mimetype("image/webp", objs, **kwargs)
219240

220241

221242
def display_latex(*objs, **kwargs):
@@ -796,11 +817,11 @@ def _repr_javascript_(self):
796817

797818

798819
# constants for identifying png/jpeg/gif/webp data
799-
_PNG = b'\x89PNG\r\n\x1a\n'
800-
_JPEG = b'\xff\xd8'
801-
_GIF1 = b'GIF87a'
802-
_GIF2 = b'GIF89a'
803-
_WEBP = b'WEBP'
820+
_PNG = b"\x89PNG\r\n\x1a\n"
821+
_JPEG = b"\xff\xd8"
822+
_GIF1 = b"GIF87a"
823+
_GIF2 = b"GIF89a"
824+
_WEBP = b"WEBP"
804825

805826

806827
def _pngxy(data):

0 commit comments

Comments
 (0)