Skip to content

Commit 66dc326

Browse files
Restore type hints in MediaEntry to match last released version
Essentially, mark short_description as mandatory. It, probably, should be optional, but I don't want to change the structure from what it was, at least for now.
1 parent 94659ce commit 66dc326

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/simplejustwatchapi/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ class MediaEntry(NamedTuple):
361361
runtime_minutes: int
362362
"""Runtime in minutes."""
363363

364-
short_description: str | None
364+
short_description: str
365365
"""Short description of this entry."""
366366

367367
genres: list[str]

test/simplejustwatchapi/test_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@
343343
"originalReleaseYear": 2020,
344344
"originalReleaseDate": "12-02-2020",
345345
"runtime": 123,
346+
"shortDescription": "Other description",
346347
"posterUrl": "/poster/url/3.jpg",
347348
},
348349
}
@@ -355,7 +356,7 @@
355356
2020,
356357
"12-02-2020",
357358
123,
358-
None,
359+
"Other description",
359360
[],
360361
None,
361362
None,

0 commit comments

Comments
 (0)