Skip to content

Commit

Permalink
Fixed tests on Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Mar 26, 2024
1 parent 6f41a7e commit 4a2e5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ async def resource_added_listener(task_status: TaskStatus[None]) -> None:
async for event in stream:
events.append(event)

def factory() -> int | float:
def factory() -> Union[int, float]: # noqa: UP007
return next(counter)

counter = count(1)
Expand Down Expand Up @@ -218,7 +218,7 @@ async def resource_added_listener(task_status: TaskStatus[None]) -> None:
async for event in stream:
events.append(event)

async def factory() -> int | float:
async def factory() -> Union[int, float]: # noqa: UP007
return next(counter)

counter = count(1)
Expand Down

0 comments on commit 4a2e5a8

Please sign in to comment.