python / cpython

The Python programming language
https://www.python.org
Other
63.54k stars 30.45k forks source link

argparse: remove the type, choices, and metavar parameters but still in the documentation. #127013

Closed loan75 closed 1 hour ago

loan75 commented 1 hour ago

Documentation

As indicated in the what's new of python3.14, Remove the type, choices, and metavar parameters of argparse. https://docs.python.org/3.14/whatsnew/3.14.html#id1

But these arguments are still present in the documentation: https://docs.python.org/3.14/library/argparse.html#type

i guess they should be removed.

ericvsmith commented 1 hour ago

They were only removed for action=BooleanOptionalAction, not in general. But I don't see that documented for BooleanOptionalAction.

brianschubert commented 1 hour ago

Linking #118805 for context

loan75 commented 1 hour ago

Indeed, I didn't fully understand the documentation! My bad. Thank your for your quick response.