8000 Fix a bug when setting StringConstraint(strict=False) by vbmendes · Pull Request #9476 · pydantic/pydantic · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@vbmendes
Copy link
Contributor
@vbmendes vbmendes commented May 21, 2024

Change Summary

This PR fixes a bug when setting StringConstraint(strict=False). It was in fact setting the schema to strict=True.

This change was initiated as a test code coverage improvement, but while creating the test, I spotted this bug.

Related issue number

Contributes to #7656 .

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @Kludex

@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label May 21, 2024
@codspeed-hq
Copy link
codspeed-hq bot commented May 21, 2024

CodSpeed Performance Report

Merging #9476 will not alter performance

Comparing vbmendes:increase_types_test_coverage (5f941ab) with main (6820879)

Summary

✅ 13 untouched benchmarks

@vbmendes
Copy link
Contributor Author

please review

Copy link
Contributor
@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!

@sydney-runkle sydney-runkle merged commit c488508 into pydantic:main May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0