From 095c07dd47102bcfcae3c9e4ad30e34f1cbdaeae Mon Sep 17 00:00:00 2001 From: Michael Schilonka Date: Mon, 17 Oct 2022 11:25:04 +0200 Subject: [PATCH] fix: go to py3.9 syntax --- getdeck/deckfile/fetch/deck_fetcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/getdeck/deckfile/fetch/deck_fetcher.py b/getdeck/deckfile/fetch/deck_fetcher.py index 5840b8b..cd03a65 100644 --- a/getdeck/deckfile/fetch/deck_fetcher.py +++ b/getdeck/deckfile/fetch/deck_fetcher.py @@ -1,5 +1,7 @@ from abc import ABC, abstractmethod import os +from typing import Optional + from pydantic import BaseModel import logging import shutil @@ -114,7 +116,7 @@ def fetch(self, data: DeckFileData) -> DeckFileData: return data -def select_fetch_behavior(location: str) -> DeckFetchBehavior | None: +def select_fetch_behavior(location: str) -> Optional[DeckFetchBehavior]: if "#" in location: location, _ = location.split("#")