Skip to content

Fix stale/incorrect pillow_jxl/__init__.pyi type stubs - #162

Open
nikosavola wants to merge 1 commit into
Isotr0py:mainfrom
nikosavola:fix-pyi-stubs
Open

Fix stale/incorrect pillow_jxl/__init__.pyi type stubs#162
nikosavola wants to merge 1 commit into
Isotr0py:mainfrom
nikosavola:fix-pyi-stubs

Conversation

@nikosavola

Copy link
Copy Markdown

The stub file no longer matched the compiled Rust extension. Encoder's constructor still listed removed parameters (parallel, has_alpha) and was missing decoding_speed/effort/use_container/use_original_profile. Encoder.__call__ was missing exif/jumb/xmp/compress, Decoder.__call__ claimed a 3-tuple return instead of the real 5-tuple, and JxlBox had no stub at all.

Also fixed docstrings that were dangling string literals placed after the function body instead of the first statement in it.

The stub file no longer matched the compiled Rust extension: Encoder's
constructor still listed removed parameters (parallel, has_alpha) and
was missing decoding_speed/effort/use_container/use_original_profile,
Encoder.__call__ was missing exif/jumb/xmp/compress, Decoder.__call__
claimed a 3-tuple return instead of the real 5-tuple, and JxlBox had no
stub at all. Also fixed docstrings that were dangling string literals
placed after the function body instead of the first statement in it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant