From fbff08299eb021261a7e7f84e61b2413fd9a7af6 Mon Sep 17 00:00:00 2001 From: sepro Date: Sat, 5 Apr 2025 20:14:16 +0200 Subject: [PATCH] Fix invalid noqa directives --- yt_dlp/update.py | 2 +- yt_dlp/utils/_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/update.py b/yt_dlp/update.py index 8e887ec031..60c2fa4536 100644 --- a/yt_dlp/update.py +++ b/yt_dlp/update.py @@ -202,7 +202,7 @@ class UpdateInfo: requested_version: str | None = None commit: str | None = None - binary_name: str | None = _get_binary_name() # noqa: RUF009: Always returns the same value + binary_name: str | None = _get_binary_name() # noqa RUF009: Always returns the same value checksum: str | None = None diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py index 24525560ef..7b7d3cbf84 100644 --- a/yt_dlp/utils/_utils.py +++ b/yt_dlp/utils/_utils.py @@ -54,7 +54,7 @@ from ..compat import ( from ..dependencies import xattr from ..globals import IN_CLI -__name__ = __name__.rsplit('.', 1)[0] # noqa: A001: Pretend to be the parent module +__name__ = __name__.rsplit('.', 1)[0] # noqa A001: Pretend to be the parent module class NO_DEFAULT: