mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-01 13:04:54 +00:00
[extractor] Use classmethod/property where possible
and refactor lazy extractors accordingly. This reduces the need to create extractor instances
This commit is contained in:
@@ -5321,6 +5321,7 @@ def merge_headers(*dicts):
|
||||
|
||||
class classproperty:
|
||||
def __init__(self, f):
|
||||
functools.update_wrapper(self, f)
|
||||
self.f = f
|
||||
|
||||
def __get__(self, _, cls):
|
||||
|
Reference in New Issue
Block a user