1
0
Fork 0
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:
coletdjnz 2025-02-11 19:44:05 +13:00
parent c3211e484b
commit a209cb80a9
No known key found for this signature in database
GPG key ID: 91984263BB39894A
2 changed files with 2 additions and 3 deletions

View file

@ -75,8 +75,7 @@ def build_ies(ies, bases, attr_base):
if ie in ies:
names.append(ie.__name__)
class_lookup_contents = ', '.join(f'{name!r}: {name}' for name in names)
yield f'\n_CLASS_LOOKUP = {{ {class_lookup_contents} }}'
yield '\n_CLASS_LOOKUP = {%s}' % ', '.join(f'{name!r}: {name}' for name in names)
def sort_ies(ies, ignored_bases):

View file

@ -384,7 +384,7 @@ select = [
"W391",
"W504",
]
exclude = "**/yt_dlp/extractor/lazy_extractors.py"
exclude = "**/yt_dlp/extractor/lazy_extractors.py,*venv*"
[tool.pytest.ini_options]
addopts = "-ra -v --strict-markers"