Commit Graph

8919 Commits

Author SHA1 Message Date
Alex Waygood
0f4a2dfec4 pin uv to 0.1.18 (#11598)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2024-03-14 11:46:03 +00:00
renovate[bot]
48106feed7 chore(deps): update pytype and pyright (#11595) 2024-03-14 09:28:09 +01:00
danieleades
a1bfd65e9f improve type annotations in 'docutils.statemachine' (#11469) 2024-03-13 19:10:40 +01:00
Thanos
64f009155e [RPi.GPIO] General improvement of stubs. (#11516) 2024-03-13 16:25:15 +01:00
danieleades
15536bd391 improve type annotations in 'docutils.parsers.rst.directives.misc' (#11524)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-03-13 06:44:58 -07:00
Alex Waygood
7894b095eb Renovate config: give the dependency groups better names (#11589) 2024-03-13 10:49:27 +00:00
Alex Waygood
382c046e9b fix renovate config (#11587) 2024-03-13 10:38:15 +00:00
Alex Waygood
c3f363ce33 Use stricter pyright settings for pygit2 (#11585) 2024-03-13 10:30:46 +00:00
Alex Waygood
405494891c Setup renovate for updating dependencies (#11565) 2024-03-13 10:27:03 +00:00
shawnbrown
ea6dac40d4 sqlite3: handle return-type with factory argument. (#11571) 2024-03-13 09:14:08 +01:00
Hoël Bagard
8558307188 tensorflow: Add tensorflow.keras.models.Model (#11334)
Based on:

- https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/saved_model/__init__.pyi
- https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/types/experimental.pyi
2024-03-12 21:01:09 -07:00
Hoël Bagard
6c52322be6 tensorflow: Add missing members to the tensorflow.keras.layers module. (#11333)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Rebecca Chen <rechen@google.com>
2024-03-12 20:45:47 -07:00
Hoël Bagard
56bb53aea7 tensorflow add tensorflow.saved_model (#11439)
Based on:
- https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/saved_model/__init__.pyi
- https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/types/experimental.pyi
2024-03-12 20:30:11 -07:00
Alex Waygood
8a9dcb1967 Make stubtest work on pyscreeze if you're using py312 (#11582) 2024-03-12 23:04:57 +01:00
Sebastian Rittau
417bdb9ac9 Refactor and merge requirements parsing (#11581) 2024-03-12 16:34:47 +01:00
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
Sebastian Rittau
4c5c5760cf email.message: Allow any header value (#11574) 2024-03-11 17:47:00 -04: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
Jelle Zijlstra
a6bdb25991 typing: Deprecate creating a NamedTuple with kwargs (#11567)
c5fa796619/Lib/typing.py (L2874)
2024-03-10 16:20:35 -07: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
Alex Waygood
e085a00a8e Bump flake8-pyi to 24.3.0 (#11560) 2024-03-10 14:03:13 +00:00
Shantanu
88fa182253 Use PEP 570 syntax in third party stubs (#11554) 2024-03-10 14:11:43 +01:00
Jelle Zijlstra
f94bbfbcc4 Update the README (#11553)
Read through the README and changed anything that no longer made sense. In particular, the documentation of our stub versioning scheme was outdated.
2024-03-09 15:59:15 -08:00
Shantanu
2d146e7da2 Use PEP 570 syntax in comments (#11552) 2024-03-09 15:06:25 -08:00
Shantanu
470a13ab09 Use PEP 570 syntax in stdlib (#11250) 2024-03-09 14:50:16 -08: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
Jelle Zijlstra
5b1fd121e0 asyncio: Fix type of add_child_handler callback (#11548) 2024-03-09 17:02:05 +01: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
Sebastian Rittau
d424547b94 Run tests with Python 3.12 (#11544) 2024-03-08 17:32:34 +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
Sebastian Rittau
407b0c4d70 Update actions/setup-python to v5 (#11542)
Fixes deprecation warnings
2024-03-08 15:53:56 +01: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
layday
ca1e47739e Fix type of concurrent.futures.wait for Python <= 3.8 (#11537)
Closes #11533.
2024-03-07 20:08:37 +01: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