Skip to content

Conversation

@JoshFerge
Copy link
Member

Summary

Extract debug_file_id to a variable before the conditional check to enable proper type narrowing for mypy.

Changes

  • Extract debug_file_id = request.GET.get("id") to variable
  • Use variable in conditional and query
  • Enables mypy to understand debug_file_id is not None in the conditional branch

Test plan

  • Existing tests pass
  • Mypy type checking passes

Extract debug_file_id to a variable before the conditional check to enable
proper type narrowing for mypy.
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 10, 2025
@codecov
Copy link

codecov bot commented Nov 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #103023      +/-   ##
===========================================
- Coverage   80.75%    80.64%   -0.11%     
===========================================
  Files        9145      9140       -5     
  Lines      395020    392794    -2226     
  Branches    24968     24968              
===========================================
- Hits       319002    316776    -2226     
  Misses      75617     75617              
  Partials      401       401              

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants