Skip to content

Commit

Permalink
Fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Sep 23, 2023
1 parent d4284ee commit 34a6ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/example_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def frame_info(frame):

# Assemble palette and grey PNGs, but with Pillow
image0 = Image.open('input/grey.png').convert('RGB')
frame0 = create_frame_from_rgb(np.array(image0), image0.width, image0.height, np.array([0,0,0]), 1, 1)
frame0 = create_frame_from_rgb(np.array(image0), image0.width, image0.height, None, 1, 1)
frame_info(frame0)

# You may even set the variables manually
Expand Down
2 changes: 1 addition & 1 deletion src/apngasm_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ NB_MODULE(MODULE_NAME, m) {
:param numpy.typing.NDArray pixels: The RGB pixel data, expressed as 3D numpy array.
:param int width: The width of the pixel data.
:param int height: The height of the pixel data.
:param numpy.typing.NDArray trns_color: The color [r, g, b] to be treated as transparent, expressed as 1D numpy array.
:param Optional[numpy.typing.NDArray] trns_color: The color [r, g, b] to be treated as transparent, expressed as 1D numpy array.
:param int delay_num: The delay numerator for this frame (defaults to DEFAULT_FRAME_NUMERATOR).
:param int delay_den: The delay denominator for this frame (defaults to DEFAULT_FRAME_DENMINATOR).
Expand Down

0 comments on commit 34a6ab2

Please sign in to comment.