From 72b129a9e2597cd078d40a4365c9bded53d8d606 Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Wed, 12 Jul 2023 14:31:30 +0000 Subject: [PATCH] fix typos in pydantic settings --- pydantic_settings/main.py | 2 +- pydantic_settings/sources.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pydantic_settings/main.py b/pydantic_settings/main.py index c97be5c7..64e9d642 100644 --- a/pydantic_settings/main.py +++ b/pydantic_settings/main.py @@ -44,7 +44,7 @@ class BaseSettings(BaseModel): This is useful in production for secrets you do not wish to save in code, it plays nicely with docker(-compose), Heroku and any 12 factor app design. - All the bellow attributes can be set via `model_config`. + All the below attributes can be set via `model_config`. Args: _case_sensitive: Whether environment variables names should be read with case-sensitivity. Defaults to `None`. diff --git a/pydantic_settings/sources.py b/pydantic_settings/sources.py index 0fb455a8..8911bdad 100644 --- a/pydantic_settings/sources.py +++ b/pydantic_settings/sources.py @@ -47,7 +47,7 @@ def get_field_value(self, field: FieldInfo, field_name: str) -> tuple[Any, str, """ Gets the value, the key for model creation, and a flag to determine whether value is complex. - This is an abstract method that should be overrided in every settings source classes. + This is an abstract method that should be overridden in every settings source classes. Args: field: The field. @@ -324,7 +324,7 @@ def get_field_value(self, field: FieldInfo, field_name: str) -> tuple[Any, str, for field_key, env_name, value_is_complex in self._extract_field_info(field, field_name): path = self.find_case_path(self.secrets_path, env_name, self.case_sensitive) if not path: - # path does not exist, we curently don't return a warning for this + # path does not exist, we currently don't return a warning for this continue if path.is_file():