[extractor] Use classmethod/property where possible
and refactor lazy extractors accordingly. This reduces the need to create extractor instances
This commit is contained in:
parent
7ddbf09c25
commit
82d020804d
11 changed files with 194 additions and 173 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue