Clarify comments

This commit is contained in:
Hugo van Kemenade 2024-03-28 22:13:09 +02:00
parent 504a2e17c8
commit d131f1c513

View File

@ -252,8 +252,8 @@ def tostring(im: Image.Image, string_format: str, **options: Any) -> bytes:
def hopper(mode: str | None = None) -> Image.Image:
# Use caching to reduce reading from disk but so an original copy is
# returned each time and the cached image isn't modified by tests
# Use caching to reduce reading from disk, but return a copy
# so that the cached image isn't modified by the tests
# (for fast, isolated, repeatable tests).
return _cached_hopper(mode).copy()