Skip to content

Conversation

@JoshFerge
Copy link
Member

Summary

Add isinstance check and cast to narrow the generic type parameters for HybridCloudForeignKey fixture return type.

Changes

  • Add isinstance check for HybridCloudForeignKey
  • Use cast() to narrow generic type parameters to [int, int]
  • Ensures type safety in test fixture

Test plan

  • Existing tests pass
  • Mypy type checking passes

Add isinstance check and cast to narrow the generic type parameters for
HybridCloudForeignKey fixture return type.
@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   #103027      +/-   ##
===========================================
- Coverage   80.75%    80.64%   -0.11%     
===========================================
  Files        9145      9140       -5     
  Lines      395020    392793    -2227     
  Branches    24968     24968              
===========================================
- Hits       319002    316777    -2225     
+ Misses      75617     75615       -2     
  Partials      401       401              

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants