https://github.com/python/cpython/commit/d664102a45cd0024878883640e29996170114bc6 commit: d664102a45cd0024878883640e29996170114bc6 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: picnixz <[email protected]> date: 2025-10-26T12:00:10Z summary:
[3.14] gh-133346: make `_colorize.Argparse` kw-only constructible (GH-140620) (#140621) gh-133346: make `_colorize.Argparse` kw-only constructible (GH-140620) Other themes are kw-only constructible. (cherry picked from commit 387ac2d2f3a9de139d2e1ad5f0dc7996af015f54) Co-authored-by: Bénédikt Tran <[email protected]> files: M Lib/_colorize.py 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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
