From 8e05fbf22b650bb7d23f12aa0e0bfbf02f92d03e Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Mon, 27 Jun 2022 16:26:55 +0100 Subject: [PATCH] Moved to Union over bitwise or --- utils/videos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/videos.py b/utils/videos.py index b41dfa7..eeb87d5 100755 --- a/utils/videos.py +++ b/utils/videos.py @@ -1,4 +1,5 @@ import json +from typing import Union from os import getenv from utils.console import print_step @@ -6,9 +7,8 @@ from utils.console import print_step def check_done( redditobj: dict[str], -) -> dict[ - str -] | None: # don't set this to be run anyplace that isn't subreddit.py bc of inspect stack +) -> Union[dict[str], None]: + # don't set this to be run anyplace that isn't subreddit.py bc of inspect stack """Checks if the chosen post has already been generated Args: