Skip to content

Commit

Permalink
style(typehints): replace string typehints (#1289)
Browse files Browse the repository at this point in the history
* style(typehints): replace string typehints

* style: revert variable type hint removal
  • Loading branch information
ReenigneArcher authored Nov 13, 2023
1 parent 9e8fcb5 commit 70b126f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 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,9 +65,7 @@ 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] = []
operatorForStack = None
Expand Down

0 comments on commit 70b126f

Please sign in to comment.