Commit Graph

2065 Commits

Author SHA1 Message Date
WÁNG Xuěruì
e960f2ff77 pygit2: Add missing Repository fields (#11579) 2024-03-12 11:38:44 +01:00
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
Avasam
dea4dd1dc1 pywin32: Correctly reference TimeType aka pywintypes.datetime (#11577)
* Correctly reference TimeType

* PyUnicode is UnicodeType
2024-03-11 22:42:51 -07:00
Rebecca Chen
a4cc79fbec networkx: add another overload to OutEdgeView.__call__(). (#11578)
It's common to call the 'edges' property of a DiGraph with an 'nbunch'
argument and no other arguments (see the Examples section of
https://networkx.org/documentation/stable/reference/classes/generated/networkx.DiGraph.out_edges.html).
None of the existing overloads allow this.
2024-03-11 19:42:55 -07:00
Avasam
579d208b19 Add deprecation decorator and comments for pywin32 (#11570)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-03-11 12:36:44 -07:00
Alex Waygood
3802899a01 Bump google-cloud-ndb to 2.3.* (#11566) 2024-03-11 00:22:14 +01:00
Avasam
354ecd084f Bump pyinstaller to 6.5.* (#11563) 2024-03-10 16:32:56 +00:00
Alex Waygood
24d39de94b Use Python 3.11 for third-party stubtest in CI (#11562) 2024-03-10 08:01:38 -07:00
Avasam
1a942aa36d Replace Flake8 checks with Ruff (except for flake8-pyi) (#11496)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-03-10 14:35:45 +00:00
Alex Waygood
55205a4ce6 Make stubtest pass on libsass/passlib/redis/tree-sitter if you're using Python 3.12 (#11561) 2024-03-10 14:16:34 +00:00
Shantanu
88fa182253 Use PEP 570 syntax in third party stubs (#11554) 2024-03-10 14:11:43 +01:00
Avasam
63737acac6 pkg_resources: Make _InstallerType stricter and generic (#11527) 2024-03-09 14:37:10 -08:00
Tony Narlock
96e62dd757 docutils: Use ClassVar for Directive class variables (#11550)
These are intended to be set as class variables, in subclasses of Directive, rather
than instance variables.

See also:
- https://docutils.sourceforge.io/docs/howto/rst-directives.html#the-directive-class
- https://docutils.sourceforge.io/docs/howto/rst-directives.html#admonitions
2024-03-09 14:28:35 -08:00
Shantanu
4d8ae17776 Bump mypy to 1.9, add to json.encoder, small fixups (#11549)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-03-09 14:25:00 -08:00
danieleades
f1cc14eeaf improve type annotations in 'docutils.io.Input' (#11540) 2024-03-09 17:00:17 +01: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
danieleades
a4b70db88f improve type annotations in 'docutils.utils' (#11526)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-03-08 07:52:21 -08:00
Avasam
af84d2fbfe pkg_resources: Updates from upstream typing merge (#11455) 2024-03-08 15:23:55 +01:00
danieleades
3646f644b8 Improve type annotations in 'docutils.parsers.rst' (#11523) 2024-03-08 15:14:00 +01:00
Avasam
52daae514a pkg_resources: Remove stray Anys and use more Self & NoReturn types (#11528) 2024-03-07 18:11:11 -08:00
danieleades
67176a41e6 improve type annotations in 'docutils.parsers.rst.tableparser' (#11530)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
2024-03-07 18:06:42 -08:00
Avasam
82fd9e8453 openpyxl: Simpler leftover changes from the microsoft/python-type-stubs merge (#11534) 2024-03-07 18:04:08 -08:00
Avasam
7c29ee3d8a Add @deprecated decorator to openpyxl (#11535) 2024-03-07 18:03:47 -08:00
github-actions[bot]
cc2ef48cd3 [stubsabot] Bump aws-xray-sdk to 2.13.* (#11536)
Release: https://pypi.org/pypi/aws-xray-sdk/2.13.0
Homepage: https://github.com/aws/aws-xray-sdk-python
Repository: https://github.com/aws/aws-xray-sdk-python
Diff: https://github.com/aws/aws-xray-sdk-python/compare/2.12.1...2.13.0

Stubsabot analysis of the diff between the two releases:
 - 1 public Python file has been added: `tests/ext/sqlalchemy_core/test_dburl.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `aws_xray_sdk/version.py`.
 - Total lines of Python code added: 65.
 - Total lines of Python code deleted: 14.
2024-03-06 22:39:04 -08:00
Gulshan Singh
e80ad6b2bc Add VERSION to gdb stubs (#11529) 2024-03-04 18:01:07 +01:00
danieleades
1c40e64611 improve type annotations in 'docutils.parsers.rst.states.Inliner' (#11473) 2024-03-03 07:13:22 -08:00
danieleades
23daf97ab3 improve type annotations in 'docutils.readers.doctree' (#11492) 2024-03-02 06:47:21 -08:00
Hoël Bagard
176c89c06f tensorflow: add partial tf.nn module. (#11388)
Some derived from:
https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/summary.pyi
https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/nn.pyi
2024-03-01 23:22:43 -08:00
danieleades
256dd720ce improve type annotations in 'docutils.parsers.rst.roles' (#11481)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
2024-03-01 23:16:14 -08:00
Hoël Bagard
5e4483618a tensorflow: add tensorflow.bitwise (#11440)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-03-01 16:00:02 -08:00
Avasam
9e5bced2d1 pkg_resources: Remove type-only _Importer class (#11512) 2024-03-01 08:58:17 -08:00
Avasam
696333c28a pkg_resources: Types from assignments and aliases (#11511) 2024-03-01 08:48:32 -08:00
Hoël Bagard
08ddbe521a tensorflow: add tensorflow.audio (#11441) 2024-03-01 07:21:10 -08:00
Hoël Bagard
ea2002d171 tensorflow: add tensorflow.keras.activations members (#11444)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-03-01 07:17:28 -08:00
Avasam
88238202d7 Add pyupgrade check outdated-version-block (UP036) (#11509)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-03-01 07:15:53 -08:00
Avasam
185ef486ae Override pkg_resources.ZipProvider.loader type (#11514) 2024-03-01 07:09:51 -08:00
danieleades
2fc0299068 improve type annotations in 'docutils.readers' (#11490)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-03-01 06:44:47 -08:00
Avasam
26e8c0002f Enable nearly all pyupgrade rules (except on test cases) (#11499)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-29 18:33:40 +00:00
Hoël Bagard
791dc9120a tensorflow: add tensorflow.autodiff (#11442) 2024-02-29 06:58:47 -08:00
Hoël Bagard
d52c1f6783 tensorflow: add tensorflow.autograph (#11443) 2024-02-29 06:57:51 -08:00
Nikita Sobolev
675ab38ab7 Update pyright version to 1.1.350 (#11501)
If you're reading about this commit in an auto-generated changelog: this is an internal change that should have no impact on how these stubs are understood by static-analysis tools such as type checkers or IDEs
2024-02-29 10:14:39 +00:00
David Salvisberg
fa164b2419 WebOb: Complete the stubs and activate stricter pyright config (#11460) 2024-02-28 22:57:50 -08:00
Avasam
3a06fc7c1a setuptools & pkg_resources: Complete VendorImporter class (#11495) 2024-02-28 22:48:26 -08:00
Avasam
5a9033720d pkg_resources: don't ignore "missing symbol from stub" in stubtest (#11494) 2024-02-28 22:31:19 -08:00
Avasam
c75ecf0bca Fix invalid noqa comments and poorly formatted type ignores (#11497) 2024-02-28 22:27:07 -08:00
Avasam
5e9589dd75 pkg_resources: Reorder names to be closer to implementation (#11493) 2024-02-28 17:20:21 -08:00
Thanos
3ddcbd04b8 bs4: Make Tag.attrs more permissive (#11487)
Make `Tag.attrs` more permissive to be in line with actual code

`Tag.attrs` is a dict can technically have `list[str]` as a valid value, not just `str`. Making the value type a union with `Any` allows `list[str]` to be valid in a type checker's eyes if a user narrows it.

Based on discussion in, and fixes, #8755.
2024-02-27 21:05:54 -08:00
Thanos
1f3cf143a5 pyOpenSSL: Add DTLS_* constants (#11486) 2024-02-27 18:12:25 -08:00
Jelle Zijlstra
6d20ea636c html5lib: Fix type alias (#11480)
Pretty sure this is what I meant to write in the first place.

Fixes #11478
2024-02-27 11:55:29 -08:00