Type annotations for cache

This commit is contained in:
Christoph Stahl 2024-06-17 17:04:59 +02:00
parent 55939887f3
commit e5a2f88e0b

View file

@ -27,7 +27,9 @@ class YouTube:
A minimal compatibility layer for the YouTube object of pytube, implemented via yt-dlp 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): def __init__(self, url: Optional[str] = None):
if url is not None: if url is not None: