From cfaa64646ce7fe9ad335e606f6aca888ef7f35a5 Mon Sep 17 00:00:00 2001 From: lardbit Date: Tue, 5 Nov 2024 11:46:32 -0600 Subject: [PATCH] fix type hint --- src/nefarious/processors.py | 3 ++- src/nefarious/tasks.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nefarious/processors.py b/src/nefarious/processors.py index 790fab9..ac820fa 100644 --- a/src/nefarious/processors.py +++ b/src/nefarious/processors.py @@ -1,5 +1,6 @@ import os import regex +from typing import Union from django.apps import apps from django.conf import settings from datetime import datetime @@ -18,7 +19,7 @@ class WatchProcessorBase: - watch_media: WatchMovie | WatchTVEpisode | WatchTVSeason = None + watch_media: Union[WatchMovie, WatchTVEpisode, WatchTVSeason] = None nefarious_settings: NefariousSettings = None _reprocess_without_possessive_apostrophes = False _possessive_apostrophes_regex = regex.compile(r"(?!\w)'s\b", regex.I) diff --git a/src/nefarious/tasks.py b/src/nefarious/tasks.py index 6f1c06c..3adcff7 100644 --- a/src/nefarious/tasks.py +++ b/src/nefarious/tasks.py @@ -1,5 +1,4 @@ import os - import pytz from celery import chain from celery.signals import task_failure