Sebastian Rittau
3e00c01ca6
Add stubs for influxdb-client ( #9429 )
2022-12-30 14:54:56 -08:00
Ned Batchelder
379d449894
zipimporter.get_data returns bytes, not str( #9428 )
...
Fixes #9427
2022-12-29 13:59:51 -08:00
Nikita Sobolev
6f6dad117d
compile can only work with ast.Module | ast.Expression | ast.Interactive (#9424 )
2022-12-29 11:25:07 +01:00
Alex Waygood
5fb21861f9
Colorize flake8 output in CI ( #9422 )
2022-12-28 12:49:51 +01:00
Avasam
23ac9bff19
Check for unused pyright: ignore and differentiate from mypy ignores ( #9397 )
2022-12-28 10:44:29 +00:00
Avasam
07f587dc70
Bump python-xlib to 0.33 ( #9420 )
2022-12-27 20:07:12 -08:00
Avasam
3c58efd9a2
mypy_primer: Resolve node.js 12 actions deprecation warning ( #9421 )
2022-12-28 02:23:44 +00:00
Gulshan Singh
c13a9ed985
Add type stubs for gdb.Value comparison operators ( #9411 )
2022-12-27 21:56:19 +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
Alex Waygood
27983aa929
ast.NodeVisitor: add visit_TryStar on 3.11+ (#9418 )
2022-12-27 18:36:53 +01:00
Alex Waygood
fd3e64ac3e
regr_test.py: Fix out-of-date comment (#9419 )
2022-12-27 17:26:48 +00:00
Will Frey
f174355b31
Allow indent to be str in JSONEncoder ( #9417 )
2022-12-27 16:26:16 +01:00
Alex Waygood
2704a8d916
pyaudio: fix stubtest failures (#9416 )
2022-12-27 16:11:01 +01:00
Alex Waygood
116229d0ac
datetime: various parameters can now safely be passed as keyword arguments on 3.12+ (#9415 )
2022-12-27 14:35:29 +00:00
zhykzhykzhyk
d6237d09c7
Add constructor to CellType ( #9399 )
2022-12-26 20:43:35 -08:00
Alex Waygood
154452ffc2
ast.NodeVisitor: Add visit_* methods for ast nodes new in 3.8-3.10 (#9413 )
2022-12-26 20:27:44 -08:00
Alex Waygood
59b1a78d5f
Bump various test dependencies ( #9412 )
2022-12-26 18:48:07 +00:00
AMBER MURTUZA ANSARI
135bbd34a5
fpdf:annotation of dash_pattern, line_width, text_mode ( #9387 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-12-25 16:24:06 +00:00
Nikita Sobolev
0e4c59a076
ast.get_docstring does not work with arbitrary AST nodes (#9407 )
2022-12-24 18:43:44 +00:00
wmcgee3
0c196791fc
Add stub for ibm_db ( #9325 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-12-24 11:07:47 +00:00
Shantanu
8c0964714c
crontab: upstream did some py2 cleanup ( #9406 )
...
Fixes #9405
2022-12-23 19:41:47 -08:00
Alex Waygood
8671fc5c0f
regr_test.py: Allow non-types dependencies (#9382 )
2022-12-23 13:55:54 -08:00
Richard Nias
4379a6a509
Add stubs for untangle ( #9402 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-12-23 14:24:30 +00:00
Sebastian Rittau
db6644790b
Initial ExifRead stubs ( #9401 )
2022-12-23 12:37:44 +01:00
Shantanu
44cdc6e284
crontab: improve types, update to 2.7 ( #9392 )
...
https://gitlab.com/doctormo/python-crontab/-/blob/v2.7.0/crontab.py
Closes #9391
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-12-22 18:42:24 -06:00
github-actions[bot]
b5bff233bf
[stubsabot] Bump flake8-builtins to 2.1.* ( #9400 )
2022-12-23 00:23:30 +00:00
hamdanal
c6b09b60de
Add stubs for the pyserial package ( #9347 )
2022-12-22 14:10:54 -06:00
Eugene Vilensky
6a7839f2c5
requests: set session.headers to MutableMapping (#9395 )
2022-12-22 15:02:58 +00:00
Will Frey
9befe5ff00
Update json.dump to only require fp: SupportsWrite[str] ( #9396 )
...
Presently, `json.dump` requires `fp` be of type `IO[str]` but in reality and according to the docs, `json.dump` only requires ` SupportsWrite[str]`.
2022-12-21 11:00:27 -08:00
Álvaro Mondéjar
0659e3c574
Fix return type of search in jmespath stubs ( #9394 )
2022-12-21 12:02:33 +00:00
Mauricio Villegas
1b50eb09df
requests: types for auth username and password ( #9389 )
2022-12-20 16:34:40 -06:00
Alex Waygood
352f496d69
Unpin stubtest from Python 3.10.8 and 3.11.0 ( #9368 )
2022-12-20 20:31:13 +00:00
pre-commit-ci[bot]
e6a04141ab
Bump isort requirement to 5.11.3 ( #9388 )
2022-12-20 02:01:41 +00:00
Sebastian Rittau
f52099a22b
Annotate more items in pika.channel ( #9385 )
2022-12-19 15:07:47 +00:00
github-actions[bot]
8ef547417f
Bump google-cloud-ndb to 2.1.* ( #9370 )
2022-12-19 12:25:24 +01:00
github-actions[bot]
3abf38ee0b
[stubsabot] Bump pytz to 2022.7 ( #9383 )
2022-12-19 00:18:21 +00:00
Коренберг Марк
bff43b53e5
Update asyncio subprocess optional **kwargs ( #9177 )
2022-12-18 09:51:31 -08:00
Alex Waygood
0e41136f5a
python-dateutil: Add zoneinfo submodule (#9381 )
2022-12-18 17:14:05 +00:00
Alex Waygood
805452f896
editdistance: delete the bycython submodule (#9380 )
2022-12-18 07:25:11 -08:00
hamdanal
3592dba338
Stubtest_third_party.py: better error message if ensurepip isn't available
2022-12-18 12:05:31 +00:00
Alex Waygood
7a9818e565
Colorize output of stdlib stubtest in CI ( #9379 )
2022-12-17 13:08:17 -08:00
Sam Bull
62accb35b8
Improve netrc types on py311+ ( #9376 )
2022-12-17 14:02:22 +00:00
Alex Waygood
04d4cbd92f
pycurl: Add missing constants ( #9373 )
2022-12-16 17:48:14 -08:00
Jukka Lehtosalo
2b20b70cf2
Revert "Use Literal for compression in zipfile ( #9346 )" ( #9367 )
...
This reverts commit 034cfab4d6 .
The commit exposed the value of the compression constants, which seem
to be implementation details, in the public API. I don't see anything
in the documentation about the values of the constants such as
`ZIP_STORED`:
https://docs.python.org/3/library/zipfile.html?highlight=zipfile#zipfile.ZipFile
Example where this makes a difference:
```
from typing import Literal
import zipfile
def f1(p: str, compression: int) -> None:
"""Error: compression should have the type Literal[0, 8, 12, 14]"""
zipfile.ZipFile(p, compression=compression)
def f2(p: str, compression: Literal[0, 8, 12, 14]) -> None:
"""Works, but cryptic and exposes internal implementation details"""
zipfile.ZipFile(p, compression=compression)
```
The values are of constants need to be explicitly specified if somebody
wants to wrap `zipfipe.ZipFile`, which arguably exposes implementation
details in a problematic fashion.
Here is a real-world example where this caused a regression:
https://github.com/pytorch/vision/blob/main/torchvision/datasets/utils.py#L301
2022-12-16 13:49:16 +00:00
github-actions[bot]
119cc62b77
[stubsabot] Bump hdbcli to 2.15.* ( #9369 )
...
Release: https://pypi.org/pypi/hdbcli/2.15.17
Homepage: https://www.sap.com/
2022-12-16 00:18:41 +00:00
Alex Waygood
c78bc57f78
shutil.rmtree: add avoids_symlink_attacks attribute ( #9366 )
2022-12-15 09:56:58 +00:00
Alex Waygood
9bddd3a3f1
Bump pyright to 1.1.284 ( #9363 )
2022-12-14 20:07:27 +00:00
Sebastian Rittau
fe9c7384fd
pika: Make Method generic, annotate DeclareOk ( #9360 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-12-14 19:42:57 +00:00
Alex Waygood
b356abcbda
Stdlib stubtest: Temporarily pin Python to 3.10.8 and 3.11.0 in CI ( #9361 )
...
Stubtest: pin Python to 3.10.8 and 3.11.0 in CI
2022-12-14 10:48:22 -08:00
Álvaro Mondéjar
95be7512ed
Add types for jmespath internals ( #9338 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-12-14 18:30:04 +00:00