Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
benrg committed May 3, 2022
1 parent 46802d5 commit 88f46f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PIL/Image.py
Expand Up @@ -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
Expand Down

0 comments on commit 88f46f3

Please sign in to comment.