-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fix regex flags accidentally passed as count #328
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Additionally, fix DeprecationWarning in Python 3.13+ due to passing flags and count as positional arguments. See: https://docs.python.org/3.13/library/re.html#re.sub
hramezani
approved these changes
Jul 1, 2024
Thanks @musicinmybrain |
mr-kamran-ali
referenced
this pull request
in robert-koch-institut/mex-common
Aug 8, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pydantic-settings](https://github.com/pydantic/pydantic-settings) ([changelog](https://github.com/pydantic/pydantic-settings/releases)) | project.dependencies | minor | `==2.3.4` -> `==2.4.0` | --- ### Release Notes <details> <summary>pydantic/pydantic-settings (pydantic-settings)</summary> ### [`v2.4.0`](https://github.com/pydantic/pydantic-settings/releases/tag/v2.4.0) [Compare Source](https://github.com/pydantic/pydantic-settings/compare/v2.3.4...v2.4.0) #### What's Changed - Fix regex flags accidentally passed as count by [@​musicinmybrain](https://github.com/musicinmybrain) in [https://github.com/pydantic/pydantic-settings/pull/328](https://github.com/pydantic/pydantic-settings/pull/328) - Deprecate `read_env_file` and move it to `DotEnvSettingsSource` by [@​WarpedPixel](https://github.com/WarpedPixel) in [https://github.com/pydantic/pydantic-settings/pull/318](https://github.com/pydantic/pydantic-settings/pull/318) - Fix a bug when loading empty yaml file by [@​hramezani](https://github.com/hramezani) in [https://github.com/pydantic/pydantic-settings/pull/330](https://github.com/pydantic/pydantic-settings/pull/330) - feat: Enable access to the current state in settings sources by [@​VictorColomb](https://github.com/VictorColomb) in [https://github.com/pydantic/pydantic-settings/pull/326](https://github.com/pydantic/pydantic-settings/pull/326) - Add support for short options. by [@​kschwab](https://github.com/kschwab) in [https://github.com/pydantic/pydantic-settings/pull/339](https://github.com/pydantic/pydantic-settings/pull/339) - Add Azure Key Vault settings source by [@​AndreuCodina](https://github.com/AndreuCodina) in [https://github.com/pydantic/pydantic-settings/pull/272](https://github.com/pydantic/pydantic-settings/pull/272) - Add cli_exit_on_error config option by [@​kschwab](https://github.com/kschwab) in [https://github.com/pydantic/pydantic-settings/pull/340](https://github.com/pydantic/pydantic-settings/pull/340) #### New Contributors - [@​musicinmybrain](https://github.com/musicinmybrain) made their first contribution in [https://github.com/pydantic/pydantic-settings/pull/328](https://github.com/pydantic/pydantic-settings/pull/328) - [@​WarpedPixel](https://github.com/WarpedPixel) made their first contribution in [https://github.com/pydantic/pydantic-settings/pull/318](https://github.com/pydantic/pydantic-settings/pull/318) - [@​VictorColomb](https://github.com/VictorColomb) made their first contribution in [https://github.com/pydantic/pydantic-settings/pull/326](https://github.com/pydantic/pydantic-settings/pull/326) - [@​AndreuCodina](https://github.com/AndreuCodina) made their first contribution in [https://github.com/pydantic/pydantic-settings/pull/272](https://github.com/pydantic/pydantic-settings/pull/272) **Full Changelog**: pydantic/pydantic-settings@v2.3.4...v2.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguMjEuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
flags
argument tore.sub()
was accidentally passed positionally in the place of thecount
argument intests/test_settings.py
. Fix this by passing it as a keyword argument, which additionally fixes aDeprecationWarning
in Python 3.13+ due to passingflags
and/orcount
as positional arguments. See: https://docs.python.org/3.13/library/re.html#re.sub