Skip to content

fix(typing): Use cast for get_field return type in test_hybrid_cloud#107793

Draft
JoshFerge wants to merge 1 commit intomasterfrom
jferg/fix-typing-test-hybrid-cloud
Draft

fix(typing): Use cast for get_field return type in test_hybrid_cloud#107793
JoshFerge wants to merge 1 commit intomasterfrom
jferg/fix-typing-test-hybrid-cloud

Conversation

@JoshFerge
Copy link
Member

@JoshFerge JoshFerge commented Feb 6, 2026

Summary

  • Use cast(HybridCloudForeignKey[int, int], ...) instead of type: ignore[return-value] for proper type narrowing of SavedSearch._meta.get_field("owner_id")
  • Pre-work for mypy 1.19 upgrade

Ref: #107710

Use `cast(HybridCloudForeignKey[int, int], ...)` instead of
`type: ignore[return-value]` for proper type narrowing.

Ref: #107727
@JoshFerge JoshFerge force-pushed the jferg/fix-typing-test-hybrid-cloud branch from 30576ea to 82be38f Compare February 6, 2026 19:05
@JoshFerge JoshFerge changed the title fix(typing): Suppress return-value error in test_hybrid_cloud fixture fix(typing): Use cast for get_field return type in test_hybrid_cloud Feb 6, 2026
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.

1 participant