fix: remove unused imports in standings.py and pitchingstats.py (#30) #49
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#49
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/major-domo-database-30"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Removes unused imports as identified in issue #30:
standings.py: removedimport pydantic(line 4) — no pydantic models defined in this filepitchingstats.py: removedimport datetime(line 1) andimport os(line 2) — neither module is usedFiles Changed
app/routers_v3/standings.pyapp/routers_v3/pitchingstats.pyNotes
The auto-formatter (ruff/black) reformatted both touched files on save (single→double quotes, line wrapping). This is consistent with previous PRs in this repo and is expected behavior per the project setup.
No logic changes were made beyond the import removals.
AI Code Review
Files Reviewed
app/routers_v3/standings.py(modified)app/routers_v3/pitchingstats.py(modified)Findings
Correctness
standings.py:import pydanticcorrectly removed — confirmed no pydantic models are defined in this file. All other pydantic usage is absent.pitchingstats.py:import datetimeandimport oscorrectly removed — confirmed neither is referenced anywhere in the file.import pydanticis correctly retained sincePitStatModelandPitStatListinherit frompydantic.BaseModel.Security
{token}is still interpolated inBad Tokenlog warnings in both files (e.g.patch_pitstats,post_pitstats,patch_standings,post_standings,recalculate_standings). This is tracked separately and should be addressed by PR #45.Style & Conventions
Suggestions
Verdict: COMMENT
Clean dead-code removal. All three imports are confirmed unused, the retained
import pydanticinpitchingstats.pyis correct, and no logic was changed. Ready to merge.Automated review by Claude PR Reviewer