1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-20 16:15:41 +07:00
This commit is contained in:
pukkandan
2022-05-20 20:55:21 +05:30
parent 2762dbb17e
commit 1a8cc83735
2 changed files with 6 additions and 4 deletions

View File

@@ -20,5 +20,7 @@ def __init__(self, func):
self.func = func
def __get__(self, instance, _):
if instance is None:
return self
setattr(instance, self.func.__name__, self.func(instance))
return getattr(instance, self.func.__name__)