gh-133300: argparse: make suggest_on_error a keyword-only parameter (#133302)

This commit is contained in:
Hugo van Kemenade 2025-05-02 18:11:44 +03:00 committed by GitHub
parent f2379535fe
commit e6c518d2eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -1886,8 +1886,8 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
add_help=True,
allow_abbrev=True,
exit_on_error=True,
suggest_on_error=False,
*,
suggest_on_error=False,
color=False,
):
superinit = super(ArgumentParser, self).__init__