pydantic / pydantic-settings

Settings management using pydantic
https://docs.pydantic.dev/latest/usage/pydantic_settings/
MIT License
502 stars 47 forks source link

Fix regex flags accidentally passed as count #328

Closed musicinmybrain closed 1 week ago

musicinmybrain commented 1 week ago

The flags argument to re.sub() was accidentally passed positionally in the place of the count argument in tests/test_settings.py. Fix this by passing it as a keyword argument, which additionally fixes a DeprecationWarning in Python 3.13+ due to passing flags and/or count as positional arguments. See: https://docs.python.org/3.13/library/re.html#re.sub

hramezani commented 1 week ago

Thanks @musicinmybrain