Skip to content

Commit e3a397e

Browse files
committed
fix type hint uncompatible with python 3.9
1 parent 96f74fd commit e3a397e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/asyncio/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from datetime import datetime, timedelta
2-
from typing import AsyncGenerator
2+
from typing import AsyncGenerator, Union
33

44
import pytest_asyncio
55

@@ -59,7 +59,7 @@ async def async_connection_with_reconnect() -> AsyncGenerator[AsyncConnection, N
5959

6060
@pytest_asyncio.fixture
6161
async def async_connection_ssl(
62-
ssl_context: PosixSslConfigurationContext | WinSslConfigurationContext,
62+
ssl_context: Union[PosixSslConfigurationContext, WinSslConfigurationContext],
6363
) -> AsyncGenerator[AsyncConnection, None]:
6464
environment = AsyncEnvironment(
6565
uri="amqps://guest:guest@localhost:5671/",

0 commit comments

Comments
 (0)