From 3d062c86eab289a4dfd5b4f8c1992dc2a96e8c78 Mon Sep 17 00:00:00 2001 From: doe1080 <98906116+doe1080@users.noreply.github.com> Date: Sun, 30 Aug 2026 07:12:11 +0900 Subject: [PATCH] [docs] Fix `Namespace` documentation (#17324) Authored by: doe1080 --- yt_dlp/YoutubeDL.py | 1 - yt_dlp/utils/_utils.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 9bd9423218..c96b9d5f22 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -672,7 +672,6 @@ class YoutubeDL: except Exception as e: self.write_debug(f'Failed to enable VT mode: {e}') - # hehe "immutable" namespace self._out_files.console = next(filter(supports_terminal_sequences, (sys.stderr, sys.stdout)), None) if self.params.get('no_color'): diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py index f7cba13d21..5be084eb57 100644 --- a/yt_dlp/utils/_utils.py +++ b/yt_dlp/utils/_utils.py @@ -5083,7 +5083,7 @@ class function_with_repr: class Namespace(types.SimpleNamespace): - """Immutable namespace""" + """SimpleNamespace iterable over attribute values""" def __iter__(self): return iter(self.__dict__.values())