Skip to content

Commit

Permalink
style(typehints): replace string typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Nov 7, 2023
1 parent 47f11f0 commit 56182ba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plexapi/mixins.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from collections import deque
from datetime import datetime
from typing import Tuple
from typing import Deque, Set, Tuple, Union
from urllib.parse import parse_qsl, quote, quote_plus, unquote, urlencode, urlsplit

from plexapi import media, settings, utils
Expand Down Expand Up @@ -65,11 +65,9 @@ def defaultAdvanced(self):
class SmartFilterMixin:
""" Mixin for Plex objects that can have smart filters. """

def _parseFilterGroups(
self, feed: "deque[Tuple[str, str]]", returnOn: "set[str]|None" = None
) -> dict:
def _parseFilterGroups(self, feed: Deque[Tuple[str, str]], returnOn: Union[Set[str], None] = None) -> dict:
""" Parse filter groups from input lines between push and pop. """
currentFiltersStack: list[dict] = []
currentFiltersStack = [] # list of dictionaries
operatorForStack = None
if returnOn is None:
returnOn = set("pop")
Expand Down

0 comments on commit 56182ba

Please sign in to comment.