Commit Graph
28 Commits
Author SHA1 Message Date
Sebastian RittauandGitHub 30b16c168d Drop Python 3.8 branches (#13776) 2025-04-03 10:35:36 +02:00
cake-monotoneandGitHub 9f11db4296 Improving type support for math.prod (#13572) 2025-03-03 16:41:34 +01:00
Ali HamdanandGitHub 70cf06799f Mark (c)math constants as final (#13410) 2025-01-19 13:35:09 +00:00
Amin AlaeeandGitHub 321c0ce75e math, mimetypes, mmap, multiprocessing, sqlite: Python 3.13 updates (#12062) 2024-05-30 14:56:22 +02:00
ShantanuandGitHub c11b16882c math: add fma in py313 (#11968) 2024-05-18 16:30:41 -04:00
ShantanuandGitHub 470a13ab09 Use PEP 570 syntax in stdlib (#11250) 2024-03-09 14:50:16 -08:00
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 RittauandGitHub 23604858a6 Remove Python 3.7 branches (#11238) 2024-01-05 11:39:39 +01:00
Alex WaygoodandGitHub 10febc4fe0 stdlib: remove unused type: ignore comments (#11061) 2023-11-23 14:00:07 +01:00
ShantanuandGitHub cf6fb07f2f math: updates for py312 (#10213) 2023-05-25 20:21:40 +01:00
Alex WaygoodandGitHub 1d7dda7fa1 stdlib: Add defaults for positional-only parameters (#9655) 2023-02-01 21:44:08 +00:00
Alex WaygoodandGitHub 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
f8dd877e48 Improve math.{ceil,floor,trunc} (#9141)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-10 14:45:07 +00:00
Alex WaygoodandGitHub edc0ecd857 Remove Python 3.6 branches from typeshed (#8269) 2022-07-11 10:55:17 +02:00
Alex WaygoodandGitHub b093c90a94 Use TypeAlias for type aliases where possible, part II (#7667) 2022-04-20 20:02:47 +01:00
Alex WaygoodandGitHub 97a74bc1aa Import from collections.abc wherever possible (#7635) 2022-04-18 12:50:37 +02:00
Alex WaygoodandGitHub 740193a8fc Use TypeAlias where possible for type aliases (#7630) 2022-04-15 18:01:00 -07:00
Alex WaygoodandGitHub 3ab250eec8 Use PEP 604 syntax wherever possible (#7493) 2022-03-16 16:01:33 +01:00
ShantanuandGitHub 991b74e166 math: add exp2 (#7321) 2022-02-19 20:57:33 -08:00
AkuliandGitHub a5bc1e037f Add mypy error codes to '# type: ignore' comments (#6379) 2021-11-26 07:07:56 +01:00
Pavel KarateevandGitHub 2bd1c7dbab Add math.cbrt() for Python 3.11 (#6375) 2021-11-25 11:00:01 +02:00
EXPLOSIONandGitHub f4143c40e8 Update SupportsIndex support for math and cmath (#6216)
* SupportsIndex for cmath
* Don't support __index__ on <3.7
2021-10-31 11:32:56 +01:00
Bas van BeekandGitHub 05cc30b8da Allow math functions to accept objects implementing the __index__ protocol (#6211) 2021-10-29 22:17:51 +02:00
AkuliandGitHub 994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
Bas van BeekandGitHub d599a535b2 Allow math.trunc to only accept __trunc__-supporting objects (#6003)
Add SupportsTrunc protocol
2021-09-04 18:16:53 +02:00
AkuliandGitHub ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
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
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