mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Fix lazy_extractors generation
This commit is contained in:
parent
c3211e484b
commit
a209cb80a9
2 changed files with 2 additions and 3 deletions
|
@ -75,8 +75,7 @@ def build_ies(ies, bases, attr_base):
|
||||||
if ie in ies:
|
if ie in ies:
|
||||||
names.append(ie.__name__)
|
names.append(ie.__name__)
|
||||||
|
|
||||||
class_lookup_contents = ', '.join(f'{name!r}: {name}' for name in names)
|
yield '\n_CLASS_LOOKUP = {%s}' % ', '.join(f'{name!r}: {name}' for name in names)
|
||||||
yield f'\n_CLASS_LOOKUP = {{ {class_lookup_contents} }}'
|
|
||||||
|
|
||||||
|
|
||||||
def sort_ies(ies, ignored_bases):
|
def sort_ies(ies, ignored_bases):
|
||||||
|
|
|
@ -384,7 +384,7 @@ select = [
|
||||||
"W391",
|
"W391",
|
||||||
"W504",
|
"W504",
|
||||||
]
|
]
|
||||||
exclude = "**/yt_dlp/extractor/lazy_extractors.py"
|
exclude = "**/yt_dlp/extractor/lazy_extractors.py,*venv*"
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "-ra -v --strict-markers"
|
addopts = "-ra -v --strict-markers"
|
||||||
|
|
Loading…
Reference in a new issue