⬆️ auto update by pre-commit hooks (#3439)
Some checks failed
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.10) (push) Failing after 1m39s
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.11) (push) Failing after 1m12s
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.12) (push) Failing after 1m13s
Code Coverage / Test Coverage (pydantic-v1, ubuntu-latest, 3.9) (push) Failing after 1m9s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.10) (push) Failing after 1m4s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.11) (push) Failing after 1m20s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.12) (push) Failing after 1m15s
Code Coverage / Test Coverage (pydantic-v2, ubuntu-latest, 3.9) (push) Failing after 1m12s
Pyright Lint / Pyright Lint (pydantic-v1) (push) Failing after 1m19s
Pyright Lint / Pyright Lint (pydantic-v2) (push) Failing after 1m12s
Ruff Lint / Ruff Lint (push) Successful in 29s
Site Deploy / publish (push) Failing after 1m55s
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, macos-latest, 3.9) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v1, windows-latest, 3.9) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, macos-latest, 3.9) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.10) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.11) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.12) (push) Has been cancelled
Code Coverage / Test Coverage (pydantic-v2, windows-latest, 3.9) (push) Has been cancelled

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot]
2025-04-09 20:53:19 +08:00
committed by GitHub
parent 570bd9587a
commit e80bfdbba0
3 changed files with 5 additions and 6 deletions

View File

@ -7,7 +7,7 @@ ci:
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
repos: repos:
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.10 rev: v0.11.4
hooks: hooks:
- id: ruff - id: ruff
args: [--fix] args: [--fix]

View File

@ -175,8 +175,7 @@ class DotEnvSettingsSource(BaseSettingsSource):
continue continue
# delete from file vars when used # delete from file vars when used
if env_name in env_file_vars: env_file_vars.pop(env_name, None)
del env_file_vars[env_name]
_, *keys, last_key = env_name.split(self.env_nested_delimiter) _, *keys, last_key = env_name.split(self.env_nested_delimiter)
env_var = result env_var = result

View File

@ -51,10 +51,10 @@ class MessageSegment(abc.ABC, Generic[TM]):
) -> bool: ) -> bool:
return not self == other return not self == other
def __add__(self: TMS, other: Union[str, TMS, Iterable[TMS]]) -> TM: def __add__(self, other: Union[str, Self, Iterable[Self]]) -> TM:
return self.get_message_class()(self) + other return self.get_message_class()(self) + other
def __radd__(self: TMS, other: Union[str, TMS, Iterable[TMS]]) -> TM: def __radd__(self, other: Union[str, Self, Iterable[Self]]) -> TM:
return self.get_message_class()(other) + self return self.get_message_class()(other) + self
@classmethod @classmethod
@ -87,7 +87,7 @@ class MessageSegment(abc.ABC, Generic[TM]):
def items(self): def items(self):
return asdict(self).items() return asdict(self).items()
def join(self: TMS, iterable: Iterable[Union[TMS, TM]]) -> TM: def join(self, iterable: Iterable[Union[Self, TM]]) -> TM:
return self.get_message_class()(self).join(iterable) return self.get_message_class()(self).join(iterable)
def copy(self) -> Self: def copy(self) -> Self: