feat: Support selecting variables in conditional filtering in list operations. (#23029)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
呆萌闷油瓶 2025-07-28 13:59:34 +08:00 committed by GitHub
commit f72c03a174
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 61 additions and 14 deletions

View file

@ -299,7 +299,7 @@ def _endswith(value: str) -> Callable[[str], bool]:
def _is(value: str) -> Callable[[str], bool]:
return lambda x: x is value
return lambda x: x == value
def _in(value: str | Sequence[str]) -> Callable[[str], bool]: