chore: improved typechecking
This commit is contained in:
1 parent
062f64e473
commit
f2c1d7de26
1 file changed
+3
-2
+3
-2
@@ -1,13 +1,14 @@
|
||||
import json
|
||||
from typing import Union
|
||||
from os import getenv
|
||||
|
||||
from praw.models import Submission
|
||||
|
||||
from utils.console import print_step
|
||||
|
||||
|
||||
def check_done(
|
||||
redditobj: dict[str],
|
||||
) -> Union[dict[str], None]:
|
||||
) -> Submission:
|
||||
# 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
|
||||
|
||||
|
||||
Reference in new issue
Block a user