From 9f95ae14390c68129fc04de25ca0583315f4cdff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Sun, 26 Oct 2025 12:33:57 +0100 Subject: [PATCH] gh-133346: make `_colorize.Argparse` kw-only constructible (GH-140620) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Other themes are kw-only constructible. (cherry picked from commit 387ac2d2f3a9de139d2e1ad5f0dc7996af015f54) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Lib/_colorize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/_colorize.py b/Lib/_colorize.py index 4f510a7141b3d2..766b2d8b80b1a4 100644 --- a/Lib/_colorize.py +++ b/Lib/_colorize.py @@ -155,7 +155,7 @@ def __iter__(self) -> Iterator[str]: return iter(self.__dataclass_fields__) -@dataclass(frozen=True) +@dataclass(frozen=True, kw_only=True) class Argparse(ThemeSection): usage: str = ANSIColors.BOLD_BLUE prog: str = ANSIColors.BOLD_MAGENTA