1
0
Fork 0

[extractor] Use classmethod/property where possible

and refactor lazy extractors accordingly.

This reduces the need to create extractor instances
This commit is contained in:
pukkandan 2022-05-11 21:24:44 +05:30
commit 82d020804d
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
11 changed files with 194 additions and 173 deletions

View file

@ -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):