From 7efbc74cb08d7d945bc1dac10e75679692d17cec Mon Sep 17 00:00:00 2001 From: Marco Esters Date: Tue, 12 Nov 2024 17:12:05 -0800 Subject: [PATCH] Replace pipe operator with Union --- tests/test_examples.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_examples.py b/tests/test_examples.py index d35164187..17dcd2e7e 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -11,7 +11,7 @@ from functools import lru_cache from pathlib import Path from plistlib import load as plist_load -from typing import Generator, Iterable, Optional, Tuple +from typing import Generator, Iterable, Optional, Tuple, Union import pytest from conda.base.context import context @@ -145,8 +145,8 @@ def _run_uninstaller_exe( install_dir: Path, timeout: int = 420, check: bool = True, - options: list | None = None, -) -> subprocess.CompletedProcess | None: + options: Union[list, None] = None, +) -> Union[subprocess.CompletedProcess, None]: # Now test the uninstallers if " " in str(install_dir): # TODO: We can't seem to run the uninstaller when there are spaces in the PATH @@ -937,7 +937,7 @@ def test_uninstallation_standalone( monkeypatch, remove_caches: bool, conda_clean: bool, - remove_condarcs: str | None, + remove_condarcs: Union[str, None], tmp_path: Path, ): recipe_path = _example_path("customize_controls")