From 88f46f3c998e15ebec8b93df32316b95f7639432 Mon Sep 17 00:00:00 2001 From: Ben Rudiak-Gould Date: Tue, 3 May 2022 13:42:04 -0700 Subject: [PATCH] Add a comment --- src/PIL/Image.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 114f4adb3..09214e2f9 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -435,6 +435,9 @@ def coerce_e(value): return value if isinstance(value, _E) else _E(1, value) +# _E(scale, offset) represents the affine transformation scale * x + offset. +# The "data" field is named for compatibility with the old implementation, +# and should be renamed once coerce_e is removed. class _E: def __init__(self, scale, data): self.scale = scale