Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
61d7830
code cleanup, new tests, more pythonic
Mattwmaster58 May 7, 2020
760047c
support for output being a PIL.Image
Mattwmaster58 May 7, 2020
f835664
update tests
Mattwmaster58 May 7, 2020
96797e9
fix pixelmatch implementation
Mattwmaster58 May 7, 2020
3e62e5f
more descriptive error messages
Mattwmaster58 May 7, 2020
96a6b40
bump version
Mattwmaster58 May 7, 2020
12e822a
blackify
Mattwmaster58 May 7, 2020
25d82e7
add docstrings
Mattwmaster58 May 7, 2020
9e4c4b4
update docs
Mattwmaster58 May 7, 2020
fd64d7a
code cleanup/refactoring, remove PIL.Image support in favor of moving…
Mattwmaster58 May 8, 2020
91ec2b5
code cleanup/refactoring, remove PIL.Image support in favor of moving…
Mattwmaster58 May 8, 2020
f9b941d
Merge remote-tracking branch 'origin/master'
Mattwmaster58 May 8, 2020
fd62dbc
remove out of scope test
Mattwmaster58 May 8, 2020
33d60a9
update docs to reflect non-support of PIL by default
Mattwmaster58 May 8, 2020
d62a2f9
update type hints
Mattwmaster58 May 8, 2020
8155bc1
blackify
Mattwmaster58 May 8, 2020
9abfc19
remove unused files
Mattwmaster58 May 8, 2020
c8978b7
fix int | float typing errors w/ mypy, pyright
Mattwmaster58 May 8, 2020
a81f78d
fix bad typing + replace missing changelog item
Mattwmaster58 May 8, 2020
d3a387d
fix bad typing + replace missing changelog item
Mattwmaster58 May 8, 2020
5c72e66
Merge remote-tracking branch 'origin/master'
Mattwmaster58 May 8, 2020
cb63e9a
Merge remote-tracking branch 'origin_upstream/master'
Mattwmaster58 May 8, 2020
42c36b4
fix mypy error
Mattwmaster58 May 8, 2020
cf3f10d
blackify
Mattwmaster58 May 8, 2020
8a9e1d4
correct changelog
Mattwmaster58 May 8, 2020
4b59c16
remove unused impport
Mattwmaster58 May 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
blackify
  • Loading branch information
Mattwmaster58 committed May 8, 2020
commit cf3f10d55554d2271da2807a1e06202201886891
4 changes: 3 additions & 1 deletion pixelmatch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ def draw_pixel(output: MutableImageSequence, pos: int, r: float, g: float, b: fl
output[pos + 3] = 255


def draw_gray_pixel(img: ImageSequence, i: int, alpha: float, output: MutableImageSequence):
def draw_gray_pixel(
img: ImageSequence, i: int, alpha: float, output: MutableImageSequence
):
r = img[i + 0]
g = img[i + 1]
b = img[i + 2]
Expand Down