Commit Graph
84 Commits
Author SHA1 Message Date
Ali HamdanandGitHub 2f3c3b7cba [seaborn] Unpin pandas-stubs (#15135) 2025-12-13 20:19:40 +01:00
Ali HamdanandGitHub fd7dfa0f5f [geopandas] Unpin pandas-stubs (#15134) 2025-12-13 20:18:54 +01:00
Ali HamdanandGitHub 1b1f3a9625 shapely: fix array dtype in geometry functions return type (#14730) 2025-09-16 15:50:37 +02:00
Ali HamdanandGitHub 4fa56fbc23 networkx: complete the link_analysis algorithms module (#14627) 2025-08-26 11:03:50 +02:00
Ali HamdanandGitHub 0183650090 networkx: (almost) complete the traversal algorithms module (#14628) 2025-08-26 11:03:01 +02:00
Ali HamdanandGitHub 94fe8571a8 networkx: fix and complete functions related to the dot interface (#14600) 2025-08-22 08:59:27 +02:00
Ali HamdanandGitHub 81639ac9fd networkx: complete the nx_latex module (#14581) 2025-08-20 12:04:06 +02:00
Ali HamdanandGitHub 4bdb14ab57 networkx: complete the layout module (#14580) 2025-08-18 21:37:56 +02:00
Ali HamdanandGitHub e0dfd41739 networkx: (almost) complete the nx_pylab module (#14579) 2025-08-18 08:32:32 +02:00
Ali HamdanandGitHub ea39410142 networkx: annotate the linalg module (#14551) 2025-08-11 18:58:50 +02:00
Ali HamdanandGitHub 897abe0089 networkx: improve the multigraph module (#14506) 2025-08-11 12:57:10 +02:00
Ali HamdanandGitHub d876dbab72 networkx: complete the astar and generic modules in shortest_paths (#14550) 2025-08-11 12:56:49 +02:00
Ali HamdanandGitHub b88f4c1757 networkx: improve the nx_agraph module (#14554) 2025-08-11 12:39:21 +02:00
Ali HamdanandGitHub 5bb4ec86c6 networkx: complete the components module (#14507) 2025-08-08 18:03:33 +02:00
Ali HamdanandGitHub 01cb5bac42 networkx: improve the shortest_paths.weighted module (#14508) 2025-08-08 18:02:54 +02:00
Ali HamdanandGitHub 7864edbc39 seaborn: improve the matrix module (#14464) 2025-07-26 17:42:14 +02:00
Ali HamdanandGitHub 2c10360fd1 networkx: improve the cycles module (#14459) 2025-07-26 16:27:01 +02:00
Ali HamdanandGitHub afc1faa86b networkx: improve the distance_measures module (#14461) 2025-07-26 16:23:49 +02:00
Ali HamdanandGitHub fbaced9227 Fix shapely for 2.1 release (#14230) 2025-07-09 09:42:57 +02:00
Ali HamdanandGitHub cb3160488b Fix shapely return types coming from numpy ufuncs (#14231) 2025-07-07 17:43:45 +02:00
Ali HamdanandGitHub 7a9a294e10 Bump geopandas stubs to version 1.1.1 (#14244) 2025-07-07 13:27:22 +02:00
Ali HamdanandGitHub 0933303ff0 Fix annotations of shapely.constructive.make_valid (#13913) 2025-05-11 14:45:05 +02:00
Ali HamdanandGitHub a0db1ba8dc Mark optparse constants as final (#13451) 2025-02-03 09:05:41 +01:00
Ali HamdanandGitHub 30a4d10b71 Mark top-level re flags as final (#13452) 2025-02-03 09:04:52 +01:00
Ali HamdanandGitHub fd92105daa Mark constants in sre_constants as final (#13453)
Replace one use of Any
2025-02-03 09:04:03 +01:00
Ali HamdanandGitHub 89b5afab15 Clean up argparse hacks (#13450) 2025-02-01 13:11:40 -08:00
Ali HamdanandGitHub d704a7d8f7 shapely: Fix tuple length of CoordinateSequence items (#13435)
Closes #13422
2025-02-01 13:40:34 -05:00
Ali HamdanandGitHub c01e731dd1 Add geopandas stubs (#12990) 2025-01-19 19:19:43 +01:00
Ali HamdanandGitHub 31bff4a503 Improve decimal constants and fill missing defaults (#13412) 2025-01-19 15:01:44 +01:00
Ali HamdanandGitHub af00613477 optparse: Fix OptionParser types (#13339) 2025-01-19 14:59:14 +01:00
Ali HamdanandGitHub 70cf06799f Mark (c)math constants as final (#13410) 2025-01-19 13:35:09 +00:00
Ali HamdanandGitHub 03167c8cad optparse: Improve Values types (#13338) 2024-12-29 18:16:18 -08:00
Ali HamdanandGitHub 7d925307cf optparse: Improve Option and OptionContainer types (#13337)
optparse: Improve Option and OptionContainer types

Also add comments for use of `Any`
2024-12-29 18:14:22 -08:00
Ali HamdanandGitHub ce36fd4b8c argparse: Use SupportsWrite instead of IO (#13324) 2024-12-29 17:12:13 -08:00
Ali HamdanandGitHub 1de78260d9 optparse: Improve Option typing (#13282) 2024-12-23 07:16:00 -08:00
Ali HamdanandGitHub 7c0974c0cd optparse: Precise types for OptionParser.add_option_group (#13277)
Precise types for OptionParser.add_option_group

These `*args` and `**kwargs` are forwarded to the `OptionGroup`
constructor with `title` made positional-only here because of
the `args[0]` check at runtime
2024-12-22 16:21:47 -08:00
Ali HamdanandGitHub 82352521bf optparse: improve HelpFormatter annotations (#13278) 2024-12-22 16:18:20 -08:00
Ali HamdanandGitHub db3c2cf69d setuptools: Remove problematic private module compat (#13280) 2024-12-22 20:05:11 +00:00
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