From 3e0eba856123abcc1e683c3e675ef7a68edd45f3 Mon Sep 17 00:00:00 2001
From: Oliver Smith <ollieparanoid@postmarketos.org>
Date: Mon, 8 Jul 2024 22:38:11 +0200
Subject: [PATCH] pmb/types: manual ruff fixes (MR 2357)

Manual fixes for things that ruff didn't fix automatically.

From python3 docs:
> Union[X, Y] is equivalent to X | Y and means either X or Y.
---
 pmb/types.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pmb/types.py b/pmb/types.py
index a8263f8d1..fe47788b5 100644
--- a/pmb/types.py
+++ b/pmb/types.py
@@ -3,12 +3,12 @@
 
 from argparse import Namespace
 from pathlib import Path
-from typing import Literal, Optional, TypedDict, Union
+from typing import Literal, TypedDict
 
 from pmb.core.arch import Arch
 
-CrossCompileType = Optional[Literal["native"] | Literal["crossdirect"]]
-PathString = Union[Path, str]
+CrossCompileType = Literal["native"] | Literal["crossdirect"] | None
+PathString = Path | str
 Env = dict[str, PathString]
 
 # These types are not definitive / API, they exist to describe the current
-- 
GitLab