Skip to content

Commit

Permalink
Fix typing in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming committed Dec 18, 2023
1 parent 75ad916 commit 7d04c33
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import random
from collections import defaultdict
from datetime import datetime, timedelta
from typing import NamedTuple, TypedDict
from typing import Iterator, NamedTuple, TypedDict
from uuid import UUID, uuid4

import psycopg2
Expand Down Expand Up @@ -943,7 +943,7 @@ class PostgresPersonOverrideFixtures(NamedTuple):
@pytest.fixture(params=POSTGRES_PERSON_OVERRIDES_MANAGERS.keys())
def postgres_person_override_fixtures(
request, query_inputs: QueryInputs, team_id, pg_connection
) -> PersonOverrideTuple:
) -> Iterator[PostgresPersonOverrideFixtures]:
"""Create a PersonOverrideMapping and a PersonOverride.
We cannot use the Django ORM safely in an async context, so we INSERT INTO directly
Expand Down

0 comments on commit 7d04c33

Please sign in to comment.