Skip to content

Commit

Permalink
fix: use optional instead of pipe in type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
totallyzen committed Nov 18, 2024
1 parent 5dad0e7 commit 0970743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tests/test_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path
from re import split
from time import sleep
from typing import Union
from typing import Union, Optional
from urllib.request import urlopen, Request

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

0 comments on commit 0970743

Please sign in to comment.