Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryangms committed Nov 21, 2024
1 parent cd38813 commit 70f5855
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rdagent/core/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class ExtendedEnvSettingsSource(EnvSettingsSource):
def get_field_value(self, field: FieldInfo, field_name: str) -> tuple[Any, str, bool]:
# Dynamically gather prefixes from the current and parent classes
prefixes = [self.config.get("env_prefix")] or []
prefixes = [self.config.get("env_prefix", "")] or []
if hasattr(self.settings_cls, "__bases__"):
for base in self.settings_cls.__bases__:
if hasattr(base, "model_config"):
Expand All @@ -32,8 +32,7 @@ def get_field_value(self, field: FieldInfo, field_name: str) -> tuple[Any, str,
return super().get_field_value(field, field_name)


class ExtendedSettingsConfigDict(SettingsConfigDict, total=False):
env_prefix: str | None
class ExtendedSettingsConfigDict(SettingsConfigDict, total=False): ...


class ExtendedBaseSettings(BaseSettings):
Expand Down

0 comments on commit 70f5855

Please sign in to comment.