[videos] Just a little type hinting
This commit is contained in:
@ -306,7 +306,9 @@ class Video(ScrobblableMixin):
|
|||||||
return video
|
return video
|
||||||
|
|
||||||
@classmethod
|
@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)
|
video, created = cls.objects.get_or_create(imdb_id=imdb_id)
|
||||||
if not created and not overwrite:
|
if not created and not overwrite:
|
||||||
return video
|
return video
|
||||||
|
|||||||
Reference in New Issue
Block a user