Skip to content

Commit 360d702

Browse files
committed
formatting
1 parent 4e8206a commit 360d702

File tree

5 files changed

+497
-422
lines changed

5 files changed

+497
-422
lines changed

src/simplejustwatchapi/justwatch.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
from simplejustwatchapi.query import (
66
MediaEntry,
7-
SeasonsEntry,
87
Offer,
8+
SeasonsEntry,
99
parse_details_response,
10-
parse_seasons_response,
1110
parse_offers_for_countries_response,
1211
parse_search_response,
12+
parse_seasons_response,
1313
prepare_details_request,
14-
prepare_seasons_request,
1514
prepare_offers_for_countries_request,
1615
prepare_search_request,
16+
prepare_seasons_request,
1717
)
1818

1919
_GRAPHQL_API_URL = "https://apis.justwatch.com/graphql"
@@ -70,9 +70,7 @@ def details(
7070
return parse_details_response(response.json())
7171

7272

73-
def seasons(
74-
node_id: str, country: str = "US", language: str = "en"
75-
) -> SeasonsEntry:
73+
def seasons(node_id: str, country: str = "US", language: str = "en") -> SeasonsEntry:
7674
"""Get show seasons for a given ID.
7775
7876
Args:

src/simplejustwatchapi/query.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ class SeasonsEntry(NamedTuple):
458458
seasons: list[Season]
459459
"""List of show seasons. """
460460

461-
461+
462462
def prepare_search_request(
463463
title: str, country: str, language: str, count: int, best_only: bool
464464
) -> dict:
@@ -594,6 +594,7 @@ def prepare_seasons_request(node_id: str, country: str, language: str) -> dict:
594594
"query": _GRAPHQL_SEASONS_QUERY,
595595
}
596596

597+
597598
def parse_seasons_response(json: any) -> SeasonsEntry | None:
598599
"""Parse response from seasons query from JustWatch GraphQL API.
599600
Parses response for ``GetNodeById`` query.

test/simplejustwatchapi/test_justwatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from pytest import fixture
44

5-
from simplejustwatchapi.justwatch import details, seasons, offers_for_countries, search
5+
from simplejustwatchapi.justwatch import details, offers_for_countries, search, seasons
66

77
JUSTWATCH_GRAPHQL_URL = "https://apis.justwatch.com/graphql"
88

0 commit comments

Comments
 (0)