From b660e47bc27dcfc7c171309f29c75e08238313d1 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 25 Feb 2025 21:09:02 -0500 Subject: [PATCH] [videos] Just a little type hinting --- vrobbler/apps/videos/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/videos/models.py b/vrobbler/apps/videos/models.py index d6f5251..c14295b 100644 --- a/vrobbler/apps/videos/models.py +++ b/vrobbler/apps/videos/models.py @@ -306,7 +306,9 @@ class Video(ScrobblableMixin): return video @classmethod - def get_from_imdb_id(cls, imdb_id: str, overwrite: bool = False): + def get_from_imdb_id( + cls, imdb_id: str, overwrite: bool = False + ) -> "Video": video, created = cls.objects.get_or_create(imdb_id=imdb_id) if not created and not overwrite: return video