From 5a35d17bfc6cc765028a917a39417958e1cdc9ff Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Thu, 9 Nov 2023 15:10:58 +0000 Subject: [PATCH] Tweaked for PEP695 compliance --- src/node_deployer/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/node_deployer/config.py b/src/node_deployer/config.py index cafd416..89edf61 100644 --- a/src/node_deployer/config.py +++ b/src/node_deployer/config.py @@ -1,6 +1,5 @@ from pathlib import Path from types import SimpleNamespace -from typing import Union import docker import tomllib @@ -19,7 +18,7 @@ def __get_project_root(): PROJECT_ROOT: Path = __get_project_root() -ConfigLabel = Union[str, list[str]] # After PEP695 support: type ConfigLabel = str | list[str] +type ConfigLabel = str | list[str] class Config(SimpleNamespace):