Commit Graph
46 Commits
Author SHA1 Message Date
Ali HamdanandGitHub a870a4e63a Remove numpy pins from several stubs (#12993) 2024-11-11 17:47:11 +01:00
Ali HamdanandGitHub 9045c67ae0 networkx: Fix stubtest errors and remove numpy version pin (#12477) 2024-08-10 15:46:51 -07:00
Ali HamdanandGitHub 0bc7b4fd5a Remove numpy version pin for several stubs(#12476) 2024-08-03 11:52:55 +01:00
Ali HamdanandGitHub 77ef4d639e Replace np.float_ alias removed in numpy 2.0 (#12138) 2024-06-16 11:45:25 +02:00
Ali HamdanandGitHub e285e52e13 mypy_test.py: warn about incompatible python version only on tested files (#12079) 2024-06-01 17:51:57 +01:00
Ali HamdanandGitHub b019e98116 Update shapely enums (#12078) 2024-06-01 07:14:28 -07:00
Ali HamdanandGitHub 4269f992f1 Use hyphenated options in black config in pyproject.toml (#12080) 2024-06-01 10:57:45 +01:00
Ali HamdanandGitHub c82d29fc76 Bump netaddr to version 1.3 (#12057) 2024-05-29 23:10:54 +02:00
Ali HamdanandGitHub 47aeda444b Fix shapely SupportsRead protocol (#12038) 2024-05-26 13:29:02 +02:00
Ali HamdanandGitHub a83f02c2d9 Add shapely stubs (#12033) 2024-05-25 16:03:34 +02:00
Ali HamdanandGitHub 08b9c86488 Use assignments for enums in pillow (#11959) 2024-05-19 12:13:48 +02:00
Ali HamdanandGitHub d9f47c37b3 Bump pygit2 to 1.15 and fix enums (#11983) 2024-05-19 12:04:44 +02:00
Ali HamdanandGitHub bd306f6b4c Use assignment instead of annotation in third party enums (#11957) 2024-05-18 17:31:39 +02:00
Ali HamdanandGitHub b570af5c1c stdlib: fix some enum definitions (#11956) 2024-05-18 13:03:10 +02:00
Ali HamdanandGitHub 4a70a78c26 optparse: add_option Option argument is positional only (#11952) 2024-05-18 06:09:09 -04:00
Ali HamdanandGitHub 6565e8a0a0 regex: functions do not accept any buffer for pattern (#11899) 2024-05-11 12:50:45 +02:00
Ali HamdanandGitHub 82d84c758c Improvements to the contributing guide (#11615) 2024-03-15 22:35:07 +00:00
Ali HamdanandGitHub 6df52a7b39 Improve typing of start_new_thread when called without kwargs (#11446) 2024-02-19 05:39:18 +01:00
Ali HamdanandGitHub 2e85a70c4c psycopg2: make Range generic (#11435)
And some other small fixes
2024-02-17 07:42:53 -08:00
Ali HamdanandGitHub 0bf3951e54 netaddr: Bump to version 1.0 (#11401)
Closes #11395
2024-02-11 01:50:32 -08:00
Ali HamdanandGitHub ae9a68a86e All functions parameters in time module are positional-only (#11248) 2024-01-14 13:52:54 +01:00
Ali HamdanandGitHub 403d43b13c seaborn: Update and complete the relational module (#11214) 2024-01-14 13:51:31 +01:00
Ali HamdanandGitHub b56c9f1606 netaddr: Bump to 0.10.* (#11215)
Closes #11211
2024-01-01 19:31:26 +01:00
Ali HamdanandGitHub 662158629b seaborn: Complete the categorical module (#11170) 2023-12-18 13:49:52 +01:00
Ali HamdanandGitHub cdad9047d5 stdlib: Use Unpack for concurrent.futures.*Executor constructors (#11171) 2023-12-18 13:46:15 +01:00
be55326873 Replace overload hack in operator.itemgetter with PEP 646 Unpack (#11136)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-12-10 16:25:48 +00:00
Ali HamdanandGitHub 6ae413f2c0 seaborn: complete the distributions module (#11131) 2023-12-10 07:18:59 -08:00
Ali HamdanandGitHub 88193cd7df seaborn: mark simple deprecations (#11130) 2023-12-10 12:04:19 +01:00
Ali HamdanandGitHub 9c5479ffda stdlib: Use PEP646 tuple unpack for precise os.execl(p)e typing (#11133) 2023-12-09 20:34:00 -08:00
Ali HamdanandGitHub 0f7241844e seaborn: complete and fix axisgrid module (#11096) 2023-12-04 12:30:26 +01:00
Ali HamdanandGitHub aef6e229fe seaborn: fix and complete seaborn.regression (#11043) 2023-11-21 17:51:25 +01:00
Ali HamdanandGitHub c189ca0e15 Add seaborn stubs (#10721) 2023-10-28 07:44:36 -07:00
6748816d43 Enable ruff's isort rules on files generated using mypy-protobuf (#10939)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-10-28 07:27:45 -07:00
Ali HamdanandGitHub 306c30a0c7 psycopg2: Fix missing Protocol base class in file protocols (#10943)
This is an error I introduced in #10630 because I didn't know protocols
need to be explicitly inherited from in other protocol subclasses.

The added test shows the change. Basically these protocols were unusable.
2023-10-28 15:09:39 +01:00
Ali HamdanandGitHub db3f84e5c2 Allow specifying python version in runtests script (#10881)
This makes the script usable for packages that do not support the minimum
python version hardcoded in the script.

Another part of #10722
2023-10-13 23:37:12 +02:00
Ali HamdanandGitHub dd00f9d899 Complete psycopg2 (#10760) 2023-09-24 13:48:01 -07:00
c5dde1e720 Add optional requires_python field to third-party stubs metadata (#10724)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-24 18:39:12 +01:00
Ali HamdanandGitHub 2b323bed50 Add typeshed aliases to the types accepted by int and float constructors (#10707)
Ref https://github.com/python/typeshed/pull/10630#discussion_r1321646168
2023-09-22 19:50:43 -07:00
Ali HamdanandGitHub 71a35b4343 psycopg2: Add missing modules, add annotations (#10630) 2023-09-13 12:11:54 +02:00
Ali HamdanandGitHub aed8c3fe1c Replace aliases by builtins.* in uuid (#10422)
These aliases were used because the class has properties called
`int` and `bytes`. I think it is better to use the shadowed types
from the builtins module. This should not change anything from the
type checking side but it improves the IDE experience[^1].

[^1]: I was using uuid recently and the aliases showed up in vscode,
I thought they were uuid special types and had to look in the stub to
know what they are.
2023-07-08 11:58:50 +01:00
Ali HamdanandGitHub 56aeeb677f Fix groups type in argparse.HelpFormatter (#10226) 2023-05-27 14:44:04 +02:00
Ali HamdanandGitHub 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
Ali HamdanandGitHub 3add7f0d76 Reference the stub_uploader issue discussing externals deps in the contributing guide (#10156)
Closes #10150
2023-05-10 08:32:00 +02:00
6bb40e95ac xml: NodeList.length is read-only (#9994)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-31 23:55:46 +01:00
Ali HamdanandGitHub f8add366d5 pyserial: Fix read and write methods (#9825) 2023-03-08 21:11:26 -08:00
hamdanalandGitHub a2fee5b30f pyserial: fix stubtest errors (#9722) 2023-02-19 12:08:20 +00:00