Skip to content

Commit cfaa646

Browse files
committed
fix type hint
1 parent 2ab1fe1 commit cfaa646

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/nefarious/processors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import regex
3+
from typing import Union
34
from django.apps import apps
45
from django.conf import settings
56
from datetime import datetime
@@ -18,7 +19,7 @@
1819

1920

2021
class WatchProcessorBase:
21-
watch_media: WatchMovie | WatchTVEpisode | WatchTVSeason = None
22+
watch_media: Union[WatchMovie, WatchTVEpisode, WatchTVSeason] = None
2223
nefarious_settings: NefariousSettings = None
2324
_reprocess_without_possessive_apostrophes = False
2425
_possessive_apostrophes_regex = regex.compile(r"(?!\w)'s\b", regex.I)

src/nefarious/tasks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
32
import pytz
43
from celery import chain
54
from celery.signals import task_failure

0 commit comments

Comments
 (0)