mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
b3cb55f823
commit
56d630294c
|
@ -649,13 +649,16 @@ class Image:
|
||||||
|
|
||||||
# Same as __repr__ but without unpredicatable id(self),
|
# Same as __repr__ but without unpredicatable id(self),
|
||||||
# to keep Jupyter notebook `text/plain` output stable.
|
# to keep Jupyter notebook `text/plain` output stable.
|
||||||
p.text("<%s.%s image mode=%s size=%dx%d>" % (
|
p.text(
|
||||||
|
"<%s.%s image mode=%s size=%dx%d>"
|
||||||
|
% (
|
||||||
self.__class__.__module__,
|
self.__class__.__module__,
|
||||||
self.__class__.__name__,
|
self.__class__.__name__,
|
||||||
self.mode,
|
self.mode,
|
||||||
self.size[0],
|
self.size[0],
|
||||||
self.size[1],
|
self.size[1],
|
||||||
))
|
)
|
||||||
|
)
|
||||||
|
|
||||||
def _repr_png_(self):
|
def _repr_png_(self):
|
||||||
"""iPython display hook support
|
"""iPython display hook support
|
||||||
|
|
Loading…
Reference in New Issue
Block a user