Skip to content

Commit 826f82f

Browse files
Restore type hints in MediaEntry to match last released version
Essentially, remove a couple of "| None" from type hints. They probably should be there, but I don't want to change the structure from what it was, at least for now.
1 parent 8475544 commit 826f82f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/simplejustwatchapi/tuples.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,19 +204,19 @@ class MediaEntry(NamedTuple):
204204
title: str
205205
"""Full title."""
206206

207-
url: str | None
207+
url: str
208208
"""URL to JustWatch with details for this entry."""
209209

210-
release_year: int | None
210+
release_year: int
211211
"""Release year as a number."""
212212

213-
release_date: str | None
213+
release_date: str
214214
"""Full release date as a string, e.g. ``2013-12-16``."""
215215

216216
runtime_minutes: int
217217
"""Runtime in minutes."""
218218

219-
short_description: str | None
219+
short_description: str
220220
"""Short description of this entry."""
221221

222222
genres: list[str]

0 commit comments

Comments
 (0)