From e5a2f88e0bf5030a5757bcd63ccf5804aaf31b7b Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Mon, 17 Jun 2024 17:04:59 +0200 Subject: [PATCH] Type annotations for cache --- syng/sources/youtube.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syng/sources/youtube.py b/syng/sources/youtube.py index 8e86888..edd8147 100644 --- a/syng/sources/youtube.py +++ b/syng/sources/youtube.py @@ -27,7 +27,9 @@ class YouTube: A minimal compatibility layer for the YouTube object of pytube, implemented via yt-dlp """ - __cache__ = {} # TODO: this may grow fast... but atm it fixed youtubes anti bot measures + __cache__: dict[ + str, Any + ] = {} # TODO: this may grow fast... but atm it fixed youtubes anti bot measures def __init__(self, url: Optional[str] = None): if url is not None: