Commit Graph

160 Commits

Author SHA1 Message Date
WÁNG Xuěruì
9a4b605065 Add stubs for pygit2 (#11374)
The upstream library is very tricky to type (likely requires nontrivial
refactoring), and only contains partial type information, but stubs are
a lot easier because only the public signatures are involved this way,
so I plan to first make the library usable in typed projects by making
stubs available here, then gradually work my way upstream.

The stubs are auto-generated then completed with fully manual inspection
of every Python source file. The `_pygit2.pyi` comes from upstream and
is mostly untouched except for required style changes, the signature of
`options()`, and `FilterSource` which is missing from upstream.
2024-03-11 22:48:12 -07:00
Hoël Bagard
beba8b1901 Add wurlitzer stubs (#11459)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2024-03-09 16:52:25 +02:00
Avasam
c35b3bce4e Use strict pyright configs for pkg_resources (#11538) 2024-03-08 17:35:56 +01:00
David Salvisberg
fa164b2419 WebOb: Complete the stubs and activate stricter pyright config (#11460) 2024-02-28 22:57:50 -08:00
Nikita Sobolev
a2095002e4 Complete stubs for bleach (#9314)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Avasam <samuel.06@hotmail.com>
2024-02-21 20:03:24 +00:00
Sebastian Rittau
8e872a022c numbers: Remove Any annotations (#11347) 2024-01-30 15:17:06 +01:00
Kevin Nowaczyk
64f7da9e45 Add stubs for antlr4 (#11192) 2024-01-15 15:35:18 +01:00
solkaz
0b43c1d95b Add types for defusedxml (#11179) 2024-01-14 14:08:59 +01:00
Audrey Dutcher
658dd55c41 Add networkx stubs (#10544)
Co-authored-by: Avasam <samuel.06@hotmail.com>
Co-authored-by: Audrey Dutcher <audrey@rhelmot.io>
2023-12-14 21:52:04 -05:00
Avasam
e109588be0 Complete seaborn stubs and mark as strict (#10974) 2023-11-15 12:58:27 +01:00
Avasam
b8932899ea Complete Flask-Migrate and mark as Strict (#10971) 2023-11-09 17:48:57 +01:00
Jelle Zijlstra
17f8a82376 ast: mark ast.Num etc. as deprecated (#10994) 2023-11-08 19:40:22 +01:00
Alex Lowe
820be9bfe9 Add pyxdg stubs (#10163)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-06 16:57:09 -08:00
Nikita Sobolev
a5d616303d Remove invoke stubs (#10956) 2023-10-31 11:31:31 +01:00
Ali Hamdan
c189ca0e15 Add seaborn stubs (#10721) 2023-10-28 07:44:36 -07:00
Alex Waygood
908993a807 Add stubs for importlib.(resources.)readers (#10928)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2023-10-26 14:18:55 +01:00
Alex Waygood
c5599572d4 Use stricter pyright settings when testing pyjks (#10846) 2023-10-06 15:01:04 +01:00
Marti Raudsepp
1163a5ecfb Add stubs for pyjks (#10797)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-01 12:31:34 +01:00
Alex Waygood
559d31c4a3 Remove stubs for urllib3 (#10812)
Both types-requests and types-influxdb-client now depend on urllib3>=2 instead of types-urllib3. That in turn means that types-caldav, types-slumber and types-requests-oauthlib all depend indirectly on urllib3>=2, since all three stubs packages depend on types-requests.
2023-10-01 00:01:12 +01:00
Sohang Chopra
da187a99a6 Add stubs for Flask-SocketIO (#10735)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-09-25 10:52:17 +01:00
David Salvisberg
ae9d22574e Add stubs for requests-oauthlib (#10658) 2023-09-11 16:20:11 +02:00
Akuli
a785041250 create_baseline_stubs.py: Improve pyright config file editing (#10629)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-30 17:43:46 +03:00
treasuryspring
ef63aec06b Add stubs for workalendar (#10614)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-08-25 22:55:02 +03:00
Nikita Sobolev
474ad1c70e Remove babel stubs (#10524) 2023-08-01 09:12:33 +01:00
PyHedgehog
7a00c25959 Add stubs for click-default-group (#9304)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
Co-authored-by: Avasam <samuel.06@hotmail.com>
2023-07-22 20:21:37 +01:00
Sebastian Rittau
a04cb3b058 Add stubs for qrcode (#10380) 2023-07-20 14:36:20 +02:00
Nikita Sobolev
e7ba0327e1 Remove SQLAlchemy stubs (#10389)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2023-07-08 10:24:59 +01:00
Nikita Sobolev
ae5b28ff37 Stricter pyright checks for inifile (#10382) 2023-06-28 22:57:25 +01:00
Alex Waygood
c63dd5941f Improve how we run pyright in CI (#10258)
Avoid using the deprecated `--venv-path` command-line argument
2023-06-23 09:26:19 +01:00
Oscar
aeb3bf7099 Add pexpect stubs (#10300) 2023-06-21 14:03:27 +02:00
David Salvisberg
df795220a3 Add stubs for WebOb (#9874)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-06-18 07:32:49 -07:00
Alexander Burchenko
46de19d2cf add boltons (#8892)
Co-authored-by: Andrey Maslennikov <andrew.maslennikov@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-06-07 07:54:37 +01:00
Jeff Dairiki
89a22f9912 Add stubs for inifile (#10270) 2023-06-06 20:41:07 -07:00
Alex Waygood
d208d5a833 Pyright: create a more isolated environment in CI for testing stubs (#10121) 2023-05-01 19:02:45 +01:00
Avasam
fb4bf034f3 Add fixers to lib2to3 (#10003) 2023-04-27 21:56:56 -07:00
Nikita Sobolev
4b04bf49bb Remove stubs for prettytable (#9988) 2023-04-01 10:39:17 +01:00
Avasam
a6c6bc1b8e Fix stdlib/disutils testing (#9734) 2023-02-21 08:06:20 +00:00
Avasam
965b3108fe Further improve and simplify pyright configuration (#9714) 2023-02-12 22:42:23 +01:00
Nikita Sobolev
62c54da134 Complete python-crontab (#9306)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-02-07 05:21:06 -08:00
Alex Waygood
60789273a2 Improve pyright verification of third-party test cases in CI (#9650)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2023-02-07 11:53:54 +00:00
Alex Waygood
e2d67bf703 Delete stubs for cryptography (#9459)
Typeshed's stubs for `paramiko` and `pyOpenSSL` now depend on the `cryptography` package, which now provides inline types at runtime
2023-01-10 22:16:11 +00:00
Avasam
b5048a00e6 Add stubs for pyasn1 (#9437)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-06 18:25:48 +00:00
Sebastian Rittau
3e00c01ca6 Add stubs for influxdb-client (#9429) 2022-12-30 14:54:56 -08:00
Avasam
23ac9bff19 Check for unused pyright: ignore and differentiate from mypy ignores (#9397) 2022-12-28 10:44:29 +00:00
Sebastian Rittau
0cf685cc17 Fully annotate ExifRead (#9403)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-27 17:46:54 +00:00
Sebastian Rittau
db6644790b Initial ExifRead stubs (#9401) 2022-12-23 12:37:44 +01:00
Nikita Sobolev
91c72cffd1 Remove dockerfile-parse from pyright's exclude (#9310)
Remove unnecessary dependency on types-six
2022-12-01 13:05:57 +00:00
PyHedgehog
87d2683ef9 Add stubs for dockerfile-parse (#9305)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-11-30 22:27:40 +00:00
Avasam
4a6d277733 Simplify pyrightconfigs by removing redundant keys (#9293) 2022-11-28 18:35:35 +00:00
kasium
ed52f68e53 Add stubs for flask-migrate (#8967)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-22 16:18:30 +00:00