renovate[bot]
8b31f2639e
Update most test/lint dependencies ( #15582 )
2026-04-01 17:54:51 +02:00
Semyon Moroz
e56ab929fd
[stdlib] Updates for Python 3.13.12 and 3.14.3 ( #15371 )
2026-02-04 18:21:43 -08:00
Max Muoto
0faac352a3
[argparse] Deprecate Argument Group 3.14 prefix_chars parameter ( #15175 )
2025-12-27 11:16:50 +01:00
Danny Yang
54df69d7ba
Update return type of argparse.ArgumentParser._parse_optional ( #15124 )
2025-12-09 23:04:03 +01:00
Jelle Zijlstra
b6e21d05ae
Add some defaults and __slots__ for 3.14 ( #14622 )
2025-08-22 18:51:00 +02:00
Semyon Moroz
5e0d6ee95e
[stdlib] Copy-edit deprecation messages ( #14614 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2025-08-21 12:12:00 +01:00
Brian Schubert
f88a09d479
Add @type_check_only to various typeshed-only procotols in stdlib ( #14465 )
...
Mark various typeshed-only protocols as `@type_check_only` in stdlib
2025-07-26 20:02:17 +01:00
Sebastian Rittau
82edad066f
Updates for Python 3.14rc1 ( #14446 )
2025-07-24 16:30:00 +02:00
Semyon Moroz
2c366c0987
[argparse] Add default value _SubParsersAction.add_parser params ( #14429 )
2025-07-18 20:53:58 +02:00
Semyon Moroz
611cba35d9
[argparse] Deprecate prefix_chars in ArgumentParser.add_argument_group ( #14428 )
2025-07-18 20:53:30 +02:00
Sebastian Rittau
38ec95323e
Update to Python 3.14.0b2 ( #14182 )
2025-05-28 12:02:19 +02:00
Edgar Ramírez Mondragón
3f8a48f6cc
Add new Python 3.14 argparse.ArgumentParser constructor parameters ( #13947 )
...
These are
- `suggest_on_error`, added by https://github.com/python/cpython/pull/124456 , made keyword-only by https://github.com/python/cpython/pull/133302
- `color`, added by https://github.com/python/cpython/pull/132323
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2025-05-11 22:26:28 -07:00
Semyon Moroz
268e1caab9
Update argparse to 3.14 ( #14005 )
2025-05-11 13:25:40 +02:00
Sebastian Rittau
30b16c168d
Drop Python 3.8 branches ( #13776 )
2025-04-03 10:35:36 +02:00
Ali Hamdan
89b5afab15
Clean up argparse hacks ( #13450 )
2025-02-01 13:11:40 -08:00
Ali Hamdan
ce36fd4b8c
argparse: Use SupportsWrite instead of IO ( #13324 )
2024-12-29 17:12:13 -08:00
Stephen Morton
3944c7839e
Add __hash__ for a bunch of types that set it to None ( #13286 )
2024-12-23 23:16:22 -08:00
Stephen Morton
1798badcdd
update for the new patch releases ( #13196 )
2024-12-05 18:24:07 +01:00
Diogo
f2eae507b2
Set None as default value for prog in add_subparsers ( #13163 )
...
And add some default values to a few other parameters, too
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-12-02 11:43:46 +00:00
Max Muoto
f3b1ee9604
Update argparse.BooleanOptionalAction for 3.14 ( #12489 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2024-08-10 23:53:05 +03:00
Max Muoto
9a77f6006d
Use Final for undocumented constants ( #12450 )
2024-07-28 12:02:06 +02:00
Max Muoto
0df6028dc8
Use Final for Constant Literals in the stdlib ( #12332 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-07-15 18:07:34 +01:00
Kanishk Pachauri
70d9d1fe84
fix: resolve issue with SubParsersAction.add_parser for custom ArgumentParser subclasses ( #12212 )
2024-06-25 16:44:45 -07:00
Kanishk Pachauri
309aebf9d7
fix: ArgParse's registry for the type keyword argument to add_argument ( #12194 )
2024-06-25 17:31:45 +02:00
Alex Waygood
ac6c61ba04
Stubtest stdlib: unpin 3.11 and 3.12 micro versions ( #12022 )
2024-05-23 13:24:28 -07:00
benchatt
044428446f
add field deprecated to classes and add_parser for argparse 3.13 ( #12019 )
2024-05-23 14:47:37 -04:00
benchatt
90f8cfca0b
add deprecated=False parameter to more argparse classes for 3.13 ( #12018 )
2024-05-23 14:13:41 -04:00
benchatt
cf4678c84a
Add deprecated parameter to two classes in argparse ( #12017 )
2024-05-23 13:46:06 -04:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Jelle Zijlstra
bba8cbd6f8
stdlib: more deprecations ( #11009 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-18 06:50:29 -08:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Alex Waygood
10febc4fe0
stdlib: remove unused type: ignore comments ( #11061 )
2023-11-23 14:00:07 +01:00
Jelle Zijlstra
5030b7419b
stdlib: Use pos-only parameters for many Protocols ( #10985 )
2023-11-06 18:09:04 +01:00
Alex Waygood
f3506eba47
Bump various test dependency pins ( #10877 )
2023-10-13 13:07:52 +02:00
Sebastian Rittau
31ae7b13c7
Add _typeshed.sentinel ( #10582 )
2023-08-16 11:31:05 +02:00
Diogo
852882b8bf
nargs could be None in argparse.ArgumentParser.add_argument (#10509 )
2023-07-26 18:46:40 +01:00
Jakob Stadler
7dbbdb0193
Fix namespace argument regression in argparse.parse_args ( #10387 )
2023-07-19 13:35:23 +02:00
Andrew Sansom
9ca4724204
argparse: Add overloads for arg parser methods ( #10307 )
2023-06-12 18:43:07 +02:00
Shantanu
fceb3ae225
argparse: improve add_argument_group and add_mutually_exclusive_group ( #10262 )
2023-06-06 08:27:51 +02:00
Ali Hamdan
56aeeb677f
Fix groups type in argparse.HelpFormatter ( #10226 )
2023-05-27 14:44:04 +02:00
Ali Hamdan
ca701f0ef3
Type argparse.HelpFormatter._Section ( #10191 )
...
The python type system doesn't provide a way to fully express the type of
`self.NestedClass` with inheritance but this change is still an improvement
over the `Any` annotations. The usage of `_Section` is rare and subclassing
it is even rarer so this shouldn't cause trouble.
2023-05-22 07:39:46 -07:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Alex Waygood
76bfe8b469
argparse: simplify parse_args overloads (#9798 )
2023-02-22 23:46:35 +02:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Jelle Zijlstra
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01:00
J. Sebastian Paez
cc7d2567f2
Add _ExtendAction to argparse ( #8701 )
...
_ExtendAction was added to argparse since python 3.8.
Reference of the addition to the standard library:
python/cpython@aa32a7e
2022-09-07 21:53:35 +01:00
David Robertson
0428069fab
argparse: type subparser helper's add_parser ( #8558 )
2022-08-19 19:51:19 +03:00
Nikita Sobolev
a03e8b4949
Revert __eq__ removal ( #8487 )
...
Refs #8483
2022-08-04 23:51:42 +02:00
Nikita Sobolev
a376da87bd
Remove duplicate definitions ( #8483 )
2022-08-04 18:55:18 +02:00