Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion litellm/proxy/proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9314,7 +9314,7 @@ async def _add_access_group_models_to_team_models(
# Second pass: resolve deployments for each eligible team
for team_object in eligible_teams:
model_names: Set[str] = set()
for ag_id in team_object.access_group_ids:
for ag_id in team_object.access_group_ids or [] :
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Trailing whitespace before colon

The or [] : introduces a trailing space before the colon, which is itself a PEP 8 violation (E203) and may be flagged by the same linter this PR is trying to fix.

Suggested change
for ag_id in team_object.access_group_ids or [] :
for ag_id in team_object.access_group_ids or []:

model_names.update(ag_model_map.get(ag_id, []))

for model_name in model_names:
Expand Down
Loading