From 62f68f0f2126d4dd718257d8450744d4494fe425 Mon Sep 17 00:00:00 2001 From: Michael Schilonka Date: Fri, 12 Aug 2022 18:06:13 +0200 Subject: [PATCH] fix: remove python 3.10 syntax for typing --- getdeck/sources/selector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getdeck/sources/selector.py b/getdeck/sources/selector.py index 9a3f07c..262d606 100644 --- a/getdeck/sources/selector.py +++ b/getdeck/sources/selector.py @@ -1,4 +1,4 @@ -from typing import Union +from typing import Union, Optional from getdeck.deckfile.file import ( DeckfileFileSource, DeckfileHelmSource, @@ -12,7 +12,7 @@ def select_fetcher_strategy( source: Union[DeckfileFileSource, DeckfileHelmSource, DeckfileKustomizeSource] -) -> Fetcher | None: +) -> Optional[Fetcher]: fetcher_strategy = { DeckfileFileSource: FileFetcher, DeckfileHelmSource: HelmFetcher,