Skip to content

Conversation

aksg87
Copy link
Collaborator

@aksg87 aksg87 commented Aug 11, 2025

Minor updates for PR #119 to follow Google Python Style Guide.

Changes:

  • Replace assert with RuntimeError per Style Guide §2.4.4
  • Add warning when use_schema_constraints is used with model/config to avoid unexpected behavior
  • Add tests for warning behavior

Note: These changes should be incorporated into PR #119 before merging. A more unified schema handling approach will be added in future updates.

cc @mariano (author of PR #119)

mariano and others added 3 commits August 11, 2025 12:09
- Replace assert with RuntimeError (Style Guide 2.4.4)
- Add warning for use_schema_constraints with model/config
- Add tests for new warning behavior
@github-actions github-actions bot added the size/M Pull request with 150-600 lines changed label Aug 11, 2025
Copy link

No linked issues found. Please link an issue in your pull request description or title.

Per our Contributing Guidelines, all PRs must:

  • Reference an issue with one of:
    • Closing keywords: Fixes #123, Closes #123, Resolves #123 (auto-closes on merge in the same repository)
    • Reference keywords: Related to #123, Refs #123, Part of #123, See #123 (links without closing)
  • The linked issue should have 5+ 👍 reactions from unique users (excluding bots and the PR author)
  • Include discussion demonstrating the importance of the change

You can also use cross-repo references like owner/repo#123 or full URLs.

mariano added a commit to mariano/langextract that referenced this pull request Aug 11, 2025
@aksg87
Copy link
Collaborator Author

aksg87 commented Aug 11, 2025

Thanks @mariano for incorporating these changes into PR #119! Closing this as the fixes have been applied.

@aksg87 aksg87 closed this Aug 11, 2025
@aksg87 aksg87 deleted the pr119-fixes branch August 11, 2025 19:51
aksg87 pushed a commit that referenced this pull request Aug 11, 2025
* Adding model and config parameters to extract()

* Adding extract precedence tests

* Applying changes from #120
aksg87 pushed a commit that referenced this pull request Aug 21, 2025
* Adding model and config parameters to extract()

* Adding extract precedence tests

* Applying changes from #120
sinnaj pushed a commit to sinnaj/langextract that referenced this pull request Sep 3, 2025
* Adding model and config parameters to extract()

* Adding extract precedence tests

* Applying changes from google#120
aksg87 added a commit that referenced this pull request Sep 12, 2025
* Adding model and config parameters to extract()

* Adding extract precedence tests

* Applying changes from #120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Pull request with 150-600 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants