Apply suggestions from code review

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Ishant Mrinal Haloi 2023-05-14 11:11:56 +05:30 committed by GitHub
parent 59b7a48570
commit f328383763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -650,14 +650,14 @@ class Image:
def _repr_png_(self):
"""iPython display hook support for PNG format.
:returns: png version of the image as bytes
:returns: PNG version of the image as bytes
"""
return self._repr_image("PNG")
def _repr_jpeg_(self):
"""iPython display hook support for JPEG format.
:returns: jpeg version of the image as bytes
:returns: JPEG version of the image as bytes
"""
return self._repr_image("JPEG")