Hoël Bagard
d52c1f6783
tensorflow: add tensorflow.autograph (#11443 )
2024-02-29 06:57:51 -08:00
Akuli
0ad004a776
tkinter: Simplify wm_iconphoto() ( #11508 )
2024-02-29 13:45:45 +02: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
Nikita Sobolev
7b4c751abb
Fix pos-only params in tkinter module ( #11506 )
2024-02-29 09:02:02 +00:00
Nikita Sobolev
217166b8a9
Fix pos-only params in os module ( #11505 )
2024-02-29 09:01:43 +00:00
Nikita Sobolev
fa4ca40f5c
Fix _operator.attrgetter pos-only params ( #11504 )
...
There cannot be any keywords:
```c
static PyObject *
attrgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
attrgetterobject *ag;
PyObject *attr;
Py_ssize_t nattrs, idx, char_idx;
if (!_PyArg_NoKeywords("attrgetter", kwds))
return NULL;
// ...
```
2024-02-29 11:03:36 +03:00
AN Long
555c1fe223
stdlib: Add Shutdown error and shutdown method to queue module ( #11489 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-29 07:45:15 +00:00
Nikita Sobolev
19d1b686b6
str.count only takes positional args (#11503 )
...
```
>>> ''.count(x='a')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: str.count() takes no keyword arguments
```
2024-02-29 10:37:12 +03:00
Nikita Sobolev
9b9de1e88c
Replace no-comments with annotate in jakebailey/pyright-action ( #11502 )
...
`no-comments` is deprecated:
- https://github.com/python/typeshed/actions/runs/8092167409/job/22112427113?pr=11501#step:10:1
- b8ffdb7aa4/action.yml (L83-L88)
2024-02-28 23:16:19 -08: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
da69247514
Code improvements from new Ruff checks ( #11498 )
2024-02-28 22:30:18 -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
2e2c6fca8b
Update sqlite/dbapi2.pyi to include new autocommit parameters for 3.12+. ( #11485 )
2024-02-28 05:29:31 -08:00
Victorien
91f224a293
Add @deprecated to abstractclass/staticmethod/property ( #11488 )
2024-02-28 13:12:06 +00: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
Rebecca Chen
b24e18fa14
Bump pytype version. ( #11483 )
2024-02-27 20:36:59 +00: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
Akuli
60826ed6c4
Add stubs for lzstring ( #11479 )
2024-02-27 21:54:57 +02:00
Alex Waygood
00ec260fcb
Revert "pin pyright-action to 2.0.2" ( #11477 )
2024-02-27 16:03:52 +00:00
Jelle Zijlstra
c62fedc190
tarfile: Remove @deprecated ( #11476 )
...
Fixes #11472 .
As noted in the issue, it is possible to set the filter on the class, but that will still cause type checkers to show deprecation warnings. Therefore, we unfortunately cannot enforce this deprecation in the type system.
2024-02-27 06:34:26 -08:00
Alex Waygood
4afc368256
pin pyright-action to 2.0.2 ( #11475 )
2024-02-27 10:07:47 +00:00
Kanishk Pachauri
1e7e174b4f
stdlib: fix ctypes errcheck type ( #11467 )
2024-02-26 14:47:46 +01:00
danieleades
d3d5f8121b
Improve type annotations in 'docutils.node.document' ( #11468 )
2024-02-26 12:50:08 +01:00
Amin Alaee
9916efae63
Update os. EX_NOTFOUND not available in Linux ( #11461 )
2024-02-26 09:36:33 +01:00
Kanishk Pachauri
49b1a1a96a
stdlib: Use Literal in difflib.SequenceMatcher.get_opcodes ( #11464 )
2024-02-23 07:44:29 -08:00
Avasam
3c08a97656
Improve typing of sysconfig.get_config_var(s) ( #11454 )
2024-02-22 09:52:41 -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
Jelle Zijlstra
78b7dc6167
html5lib: Add various types ( #11429 )
...
I started out investigating comments in #11411 and ended up adding a few other
types that were reasonably obvious from the source code. For reference:
https://github.com/html5lib/html5lib-python/tree/master/html5lib
2024-02-20 00:18:17 -08:00
Randolf Scholz
601587e71d
changed overload order for date.__sub__ and datetime.__sub__ ( #10999 )
2024-02-19 13:11:29 +01:00
Sebastian Rittau
df409a2fb5
Use a protocol for shlex.instream et al. ( #11452 )
2024-02-18 22:04:43 -08:00
Avasam
bb6613f379
shlex.split: allow TextIO and deprecate None (#11451 )
2024-02-19 06:10:01 +01:00
Jelle Zijlstra
84572bbfe6
importlib.metadata: Use the SimplePath protocol ( #11445 )
...
Closes #9217 . Followup from #11436 .
This mostly makes a simpler set of changes than #9217 ; in particular
it does not make PathDistribution generic. I think this is in line with
how the protocol is supposed to be used, though not always in line with
the runtime type annotations (which don't all make sense).
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2024-02-18 21:05:33 -08:00
Ali Hamdan
6df52a7b39
Improve typing of start_new_thread when called without kwargs ( #11446 )
2024-02-19 05:39:18 +01:00
Jelle Zijlstra
e8c029fbd3
openpyxl: Add stubtest allowlist entry ( #11449 )
...
Fixes #11448
2024-02-19 05:37:54 +01:00
Jelle Zijlstra
bba8cbd6f8
stdlib: more deprecations ( #11009 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-18 06:50:29 -08:00
github-actions[bot]
46b2635626
[stubsabot] Bump netaddr to 1.2.* ( #11437 )
...
Co-authored-by: stubsabot <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-18 11:57:37 +00:00
Jelle Zijlstra
705744af4c
Update for typing_extensions 4.10 ( #11438 )
2024-02-18 00:59:48 -08:00
Jelle Zijlstra
e5d25a7605
importlib.metadata: Improve and test SimplePath protocol ( #11436 )
...
Co-authored-by: layday <layday@protonmail.com >
2024-02-18 00:36:01 -08:00
Nikita Sobolev
e961db9492
Change the asyncio.Task constructor type ( #10228 )
2024-02-17 15:50:26 -08:00
Nikita Sobolev
863d22a239
Make return type of functools.cache_property covariant ( #10053 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-17 15:38:46 -08:00
Nikita Sobolev
3fa6374c9a
Mark simplejson as completed ( #9211 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-17 14:50:46 -08:00
Mehdi ABAAKOUK
522f4bc9bf
fix(redis): make xadd fields use SupportsItems ( #10780 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-17 16:48:01 +00:00
Hoël Bagard
955cdf50d5
tensorflow: add tf.linalg module (#11386 )
...
Taken from:
https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/linalg.pyi
2024-02-17 07:45:11 -08:00
Ali Hamdan
2e85a70c4c
psycopg2: make Range generic ( #11435 )
...
And some other small fixes
2024-02-17 07:42:53 -08:00
Tanguy Rossel
498ab71a34
defusedxml.ElementTree: useElement from ElementTree instead of minidom ( #11305 )
2024-02-17 15:56:08 +01:00
Andrew Murray
67a80c67df
Added types for olefile ( #11416 )
2024-02-17 15:50:01 +01:00