Skip to content

fix(images.edit): update size type annotation to match documentation #2334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smalyu
Copy link

@smalyu smalyu commented Apr 30, 2025

Updates the type annotation of the size parameter in the images.edit method to match the official documentation.

Currently, the annotation is missing the valid options "1536x1024", "1024x1536", and "auto". As a result, IDEs and type checkers incorrectly flag valid resolutions as errors, causing unnecessary developer pain and triggering existential crises for perfectionists everywhere. 😅

This fix only affects type annotations and does not change runtime behavior.

@smalyu smalyu requested a review from a team as a code owner April 30, 2025 13:51
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