Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
adhere to style guide of the project

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
  • Loading branch information
Dr-Blank and JonnyWong16 authored Nov 5, 2023
1 parent eb71934 commit 27dbe62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plexapi/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class SmartFilterMixin:
def _parseFilterGroups(
self, feed: "deque[Tuple[str, str]]", returnOn: "set[str]|None" = None
) -> dict:
"""parse filter groups from input lines between push and pop"""
""" Parse filter groups from input lines between push and pop. """
currentFiltersStack: list[dict] = []
operatorForStack = None
if returnOn is None:
Expand Down Expand Up @@ -112,10 +112,10 @@ def _parseFilterGroups(
return currentFiltersStack.pop()

def _parseQueryFeed(self, feed: "deque[Tuple[str, str]]") -> dict:
"""parse the query string into a dict"""
""" Parse the query string into a dict. """
filtersDict = {}
special_keys = set(("type", "sort"))
integer_keys = set(("includeGuids", "limit"))
special_keys = {"type", "sort"}
integer_keys = {"includeGuids", "limit"}
reserved_keys = special_keys | integer_keys
while feed:
key, value = feed.popleft()
Expand All @@ -140,7 +140,7 @@ def _parseQueryFeed(self, feed: "deque[Tuple[str, str]]") -> dict:
return filtersDict

def _parseFilters(self, content):
"""Parse the content string and returns the filter dict."""
""" Parse the content string and returns the filter dict. """
content = urlsplit(unquote(content))
feed = deque()

Expand Down

0 comments on commit 27dbe62

Please sign in to comment.