https://github.com/python/cpython/commit/387ac2d2f3a9de139d2e1ad5f0dc7996af015f54
commit: 387ac2d2f3a9de139d2e1ad5f0dc7996af015f54
branch: main
author: Bénédikt Tran <[email protected]>
committer: picnixz <[email protected]>
date: 2025-10-26T11:33:57Z
summary:
gh-133346: make `_colorize.Argparse` kw-only constructible (#140620)
Other themes are kw-only constructible.
files:
M Lib/_colorize.py
diff --git a/Lib/_colorize.py b/Lib/_colorize.py
index d35486296f2684..63e951d6488547 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]