Moved to Union over bitwise or

pull/729/head
Callum Leslie 3 years ago
parent 87d10206fb
commit 8e05fbf22b

@ -1,4 +1,5 @@
import json import json
from typing import Union
from os import getenv from os import getenv
from utils.console import print_step from utils.console import print_step
@ -6,9 +7,8 @@ from utils.console import print_step
def check_done( def check_done(
redditobj: dict[str], redditobj: dict[str],
) -> dict[ ) -> Union[dict[str], None]:
str # don't set this to be run anyplace that isn't subreddit.py bc of inspect stack
] | 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 """Checks if the chosen post has already been generated
Args: Args:

Loading…
Cancel
Save