Skip to content

Conversation

@budisteanualexandra
Copy link

This PR fixes incorrect usage of Image.from_file() in the documentation and examples.

Changes

  • Updated README examples to use the keyword argument.
  • Updated reStructuredText documentation examples.
  • Updated example usages in models.py to reflect the correct API.

Following the previous documentation resulted in TypeError exceptions when calling
Image.from_file() with positional arguments. This change aligns the examples with
the actual SDK behavior.

@google-cla
Copy link

google-cla bot commented Nov 28, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@janasangeetha janasangeetha self-assigned this Dec 1, 2025
@janasangeetha janasangeetha added the size:M Code changes between 10-40 lines label Dec 1, 2025
@sararob
Copy link
Contributor

sararob commented Dec 1, 2025

Thanks for this PR! The models.py and index.rst.txt files are autogenerated. Could you revert the changes to those files and we'll merge in your readme update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M Code changes between 10-40 lines status:awaiting user response

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants