Skip to content

Commit

Permalink
Revert usage of positional only argument in BaseSettings.__init__ (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos authored Feb 27, 2025
1 parent 1a4f3f4 commit 21e6b23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pydantic_settings/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ class BaseSettings(BaseModel):
"""

def __init__(
self,
/,
__pydantic_self__,
_case_sensitive: bool | None = None,
_nested_model_default_partial_update: bool | None = None,
_env_prefix: str | None = None,
Expand Down Expand Up @@ -175,7 +174,7 @@ def __init__(
**values: Any,
) -> None:
super().__init__(
**self._settings_build_values(
**__pydantic_self__._settings_build_values(
values,
_case_sensitive=_case_sensitive,
_nested_model_default_partial_update=_nested_model_default_partial_update,
Expand Down

0 comments on commit 21e6b23

Please sign in to comment.