mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-27 06:13:07 +00:00
style: ruff format the normalization helper
This commit is contained in:
parent
982d11b7c0
commit
6de98912d3
1 changed files with 1 additions and 3 deletions
|
|
@ -21,9 +21,7 @@ def _normalize_wildcard_segments(expr: str) -> tuple[str, ...]:
|
|||
nested-wildcard expression is silently dropped and skips the
|
||||
guardrail (#46302).
|
||||
"""
|
||||
segments: Final = tuple(
|
||||
segment for segment in expr.replace("[*]", ".[*]").split(".") if segment
|
||||
)
|
||||
segments: Final = tuple(segment for segment in expr.replace("[*]", ".[*]").split(".") if segment)
|
||||
return segments
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue