Skip to content

Commit 3192866

Browse files
srest2021claude
andcommitted
fix(autofix): Add type annotations to fix mypy errors in seer_rpc.py
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6e74c18 commit 3192866

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sentry/seer/endpoints/seer_rpc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ def trigger_coding_agent_launch(
626626
if features.has("organizations:seer-project-settings-dual-write", organization):
627627
project = Project.objects.get_from_cache(id=project_id)
628628

629+
preference: SeerProjectPreference | None = None
629630
if features.has(
630631
"organizations:seer-project-settings-read-from-sentry", organization
631632
):
@@ -886,6 +887,7 @@ def get_project_preferences(*, organization_id: int, project_id: int) -> dict |
886887
raise Project.DoesNotExist
887888

888889
organization = Organization.objects.get_from_cache(id=organization_id)
890+
preference: SeerProjectPreference | None = None
889891
if features.has("organizations:seer-project-settings-read-from-sentry", organization):
890892
preference = read_preference_from_sentry_db(project)
891893
else:

0 commit comments

Comments
 (0)