Skip to content

Commit 0970743

Browse files
committed
fix: use optional instead of pipe in type annotation
1 parent 5dad0e7 commit 0970743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/tests/test_compose.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33
from re import split
44
from time import sleep
5-
from typing import Union
5+
from typing import Union, Optional
66
from urllib.request import urlopen, Request
77

88
import pytest
@@ -369,7 +369,7 @@ def fetch(req: Union[Request, str]):
369369
),
370370
],
371371
)
372-
def test_compose_profile_support(profiles: list[str] | None, running: list[str], not_running: list[str]):
372+
def test_compose_profile_support(profiles: Optional[list[str]], running: list[str], not_running: list[str]):
373373
with DockerCompose(context=FIXTURES / "profile_support", profiles=profiles) as compose:
374374
for service in running:
375375
assert compose.get_container(service) is not None

0 commit comments

Comments
 (0)