We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d28dad commit 309d332Copy full SHA for 309d332
tests/sentry/deletions/tasks/test_hybrid_cloud.py
@@ -92,7 +92,11 @@ def reset_watermarks() -> None:
92
93
@pytest.fixture
94
def saved_search_owner_id_field() -> HybridCloudForeignKey[int, int]:
95
- return SavedSearch._meta.get_field("owner_id")
+ from typing import cast
96
+
97
+ field = SavedSearch._meta.get_field("owner_id")
98
+ assert isinstance(field, HybridCloudForeignKey)
99
+ return cast(HybridCloudForeignKey[int, int], field)
100
101
102
@django_db_all
0 commit comments