Skip to content

Cleanup: Move defaultdict imports to top of file #5

@samkeen

Description

@samkeen

Issue

The from collections import defaultdict import was added inside function bodies in multiple places:

  • api/src/routes/projects.py - lines 368, 537, 650, 1021
  • api/src/routes/activity.py - line 143

Fix

Move these imports to the top of each file with the other imports.

Note

In get_session() (projects.py ~line 650), the import is unused - sub_agent_ids is built with a regular list, not defaultdict. This import can be removed entirely from that function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions