Skip to content

Commit 70b126f

Browse files
style(typehints): replace string typehints (#1289)
* style(typehints): replace string typehints * style: revert variable type hint removal
1 parent 9e8fcb5 commit 70b126f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plexapi/mixins.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
from collections import deque
33
from datetime import datetime
4-
from typing import Tuple
4+
from typing import Deque, Set, Tuple, Union
55
from urllib.parse import parse_qsl, quote, quote_plus, unquote, urlencode, urlsplit
66

77
from plexapi import media, settings, utils
@@ -65,9 +65,7 @@ def defaultAdvanced(self):
6565
class SmartFilterMixin:
6666
""" Mixin for Plex objects that can have smart filters. """
6767

68-
def _parseFilterGroups(
69-
self, feed: "deque[Tuple[str, str]]", returnOn: "set[str]|None" = None
70-
) -> dict:
68+
def _parseFilterGroups(self, feed: Deque[Tuple[str, str]], returnOn: Union[Set[str], None] = None) -> dict:
7169
""" Parse filter groups from input lines between push and pop. """
7270
currentFiltersStack: list[dict] = []
7371
operatorForStack = None

0 commit comments

Comments
 (0)