Commit Graph

26 Commits

Author SHA1 Message Date
Alex Waygood
e88a182573 Simplify __all__ definitions in modules beginning with 'a' to 'l' (#8026) 2022-06-07 15:40:48 +02:00
Alex Waygood
acc0167dc1 Fix several new-in-3.11 stubtest errors (#7973) 2022-06-02 18:07:38 -07:00
hamdanal
b151e0c5a7 Make usage in argparse.HelpFormatter._format_usage optional (#7983)
closes #7982
2022-05-29 15:21:20 -07:00
Jelle Zijlstra
b4518bfb2b argparse: remove incorrect default in overload (#7929)
Part of #7928
2022-05-23 18:12:19 +01:00
Alex Waygood
c653be73b8 Use TypeAlias for argparse type aliases (#7664) 2022-04-20 07:32:10 -07:00
Alex Waygood
97a74bc1aa Import from collections.abc wherever possible (#7635) 2022-04-18 12:50:37 +02:00
Jukka Lehtosalo
483550abe0 Drop some literal types from argparse (add_argument) (#7614)
These were introduced in #7329 and they cause false positives
in code that used to be accepted before.
2022-04-13 14:01:54 +02:00
Martin Fischer
a0901817cf argparse: Use Literal for action & nargs add_argument parameter types (#7329) 2022-02-20 16:12:07 -08:00
Alex Waygood
ad6982e4b8 Add argparse.__all__ (#7263) 2022-02-18 17:35:27 -08:00
Alex Waygood
fbc279e3f5 stdlib: Add many missing dunder overrides (#7231) 2022-02-16 06:25:47 -08:00
Alex Waygood
f4967618dd Fix positional-only differences in many stdlib modules (#7226) 2022-02-15 15:14:06 +01:00
Shantanu
b88a6f19cd Upgrade black version (#7089) 2022-01-30 16:27:06 -08:00
Akuli
f9c650d167 Delete duplicate union members (#6916) 2022-01-14 17:41:06 +02:00
Alex Waygood
a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Jelle Zijlstra
85712073ac Remove duplicate type from ArgumentParser.add_argument (#6652) 2021-12-22 08:59:23 +01:00
Akuli
a5bc1e037f Add mypy error codes to '# type: ignore' comments (#6379) 2021-11-26 07:07:56 +01:00
Omer Ozarslan
f3a345493c Make argparse._SubParsersAction generic (#6178) 2021-10-16 00:36:46 +03:00
Akuli
994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
Akuli
ce11072dbe Big diff: use lower-case list and dict (#5888) 2021-08-08 09:26:35 -07:00
Akuli
ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
谭九鼎
10889422df argparse#add_argument: make choices optional (#5574) 2021-06-04 10:20:22 +02:00
Sebastian Rittau
841a365284 Remove compatibility aliases (#5464)
* Remove compatibility aliases

Remove a few instances of Text

Use aliases from _typeshed

* Remove unused imports
2021-05-15 20:49:20 +03:00
Akuli
17dcea4a68 Akuli and srittau: Remove Python 2 branches from Python 3 stubs (#5461)
* run script and do some manual changes (Akuli)

* do the whole thing manually (srittau)

* merge changes (Akuli)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2021-05-15 15:33:39 +03:00
danieleades
545a54e17b fix typings of 'argparse.HelpFormatter.add_usage' (#5278)
Closes #5277
2021-05-01 20:25:18 +02:00
Ivan Levkivskyi
16ae4c6120 Re-organize directory structure (#4971)
See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2021-01-27 12:00:39 +00:00