Alex Waygood
32c575d980
subprocess.check_call: executable defaults to None (#9689 )
...
This argument is forwarded on to `Popen.__init__`, like most of the other arguments. It can be `None`, just like the `executable` parameter for all the other `subprocess` functions:
```pycon
>>> import subprocess
>>> subprocess.check_call(["python", "-c", "1/1"], executable=None)
0
>>> subprocess.check_call(["python", "-c", "1/0"], executable=None)
Traceback (most recent call last):
File "<string>", line 1, in <module>
ZeroDivisionError: division by zero
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\alexw\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python', '-c', '1/0']' returned non-zero exit status 1.
```
2023-02-07 12:33:12 +00:00
Alex Waygood
53747b264e
Stdlib: add 'obvious' default values ( #9688 )
2023-02-07 13:00:40 +01: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
Sebastian Rittau
565a1a07ad
Remove note about Optional still being necessary sometimes ( #9687 )
2023-02-07 03:03:22 -08:00
Alex Waygood
0ef9c3f8e8
Enable flake8-pyi's Y037 ( #9686 )
2023-02-06 19:01:02 -08:00
Alex Waygood
c4c4bee8aa
Remove a no-longer-needed # noqa ( #9685 )
2023-02-07 00:43:53 +00:00
Avasam
29d9aa9b28
Complete stubtest and fix Any subclassing in tqdm ( #9525 )
2023-02-07 00:15:44 +00:00
Alex Waygood
efee70abfa
Bump mypy to 1.0 ( #9684 )
2023-02-06 15:57:17 -08:00
Nikita Sobolev
f7cb7f33b2
Use OSError instead of IOError ( #9683 )
2023-02-06 18:56:32 +00:00
Nikita Sobolev
c96079f0df
urllib.HTTPError.headers is a settable property (#9682 )
2023-02-06 18:56:08 +00:00
Alex Waygood
5157ff86da
unicodedata: overload many functions and methods (#9656 )
2023-02-06 07:04:26 -08:00
Alex Waygood
262f2067aa
Update paramiko stubs to 3.0.* ( #9667 )
2023-02-06 07:01:50 -08:00
Alex Waygood
191afbc559
Update invoke stubs to 2.0.* ( #9669 )
2023-02-06 06:54:21 -08:00
Jelle Zijlstra
c65a87481d
colorama: Preserve input type for wrap_stream ( #9677 )
2023-02-06 06:50:21 -08:00
Alex Waygood
ccb250940a
Improve collections stubs ( #9674 )
2023-02-06 13:54:15 +01:00
Eclips4
cd5f976968
keyword: mark kwlist and softkwlist as Final (#9680 )
2023-02-05 13:44:59 +00:00
Marc Mueller
88a761ed4e
Export DataclassInstance protocol from _typeshed ( #9676 )
2023-02-04 15:58:11 +00:00
Alex Waygood
b9270da7b0
Improve readability of stdlib/_winapi.pyi ( #9673 )
2023-02-04 06:55:47 -08:00
Jukka Lehtosalo
bba1c67610
Update mypy_extensions stubs to 1.0.x ( #9675 )
2023-02-04 12:54:39 +00:00
Alex Waygood
1e3d762a12
stdlib: use bool for annotations where the default is False ( #9672 )
2023-02-04 11:58:18 +00:00
Akuli
37a180ef7b
Use octal for mode defaults ( #9670 )
2023-02-03 19:12:53 +00:00
Alex Waygood
48cffeeea6
Update caldav stubs to 1.0.* ( #9668 )
2023-02-03 06:38:16 -08:00
Juan Amari
ce8c82a27c
[redis] Initial stubs for redis.asyncio.cluster ( #9468 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2023-02-03 13:27:39 +00:00
Alex Waygood
f94d496626
Update cachetools stubs to 5.3.* ( #9666 )
2023-02-03 12:20:38 +00:00
Alex Waygood
4afda1dbe3
Rework CONTRIBUTING.md: simple parameter defaults are now accepted and encouraged ( #9665 )
2023-02-03 11:59:07 +00:00
hasier
c2e638e222
Fix python-jose unverified jws and jwt functions ( #9662 )
2023-02-03 11:53:00 +00:00
Sebastian Rittau
dc389eafe7
Update setuptools to 67.1 ( #9664 )
...
Replace some instances of `Any` with `Incomplete` or proper types.
2023-02-03 11:43:35 +00:00
Sebastian Rittau
cd64563dd8
Rework the "Incomplete stubs" section ( #9548 )
...
Also move it to the "Conventions" section due its scope change.
Closes : #8955
2023-02-03 11:58:25 +01:00
Jelle Zijlstra
5b24c7bb41
stdlib: Run stubdefaulter on Linux for 3.9 ( #9663 )
2023-02-03 00:39:22 +00:00
Alex Waygood
100cd62373
stdlib: Add bytes defaults ( #9660 )
2023-02-02 16:01:54 -08:00
Avasam
f1aede7162
Manual changes of Any union to Incomplete in stubs folder ( #9566 )
...
- ClassVar[Any | None]
- Missed previous changes due to alias
- Manual review of leftover Any unions (`| Any` and `Any |`)
2023-02-02 06:48:41 -08:00
Alex Waygood
95dc689b28
Remove unneeded ignore in .flake8 ( #9661 )
...
B028 was renamed as B907, and we don't have any of the B9 rules enabled for this repo (they're all off by default)
2023-02-02 13:29:50 +00:00
Peter Pentchev
1e5d72314f
setuptools: add pkg_resources.Requirement.url ( #9657 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2023-02-01 23:44:08 -08:00
Jelle Zijlstra
0fc3a567fc
stdlib: add defaults for modules accessible on MacOS ( #9659 )
...
Ran stubdefaulter with standard options on a Mac.
2023-02-01 22:46:55 +00:00
Jelle Zijlstra
bc463a0677
Remove default for size parameter to multiprocessing.heap.Heap ( #9658 )
...
It's system-dependent. stubdefaulter told me `multiprocessing.heap.Heap: parameter size: stub default 4096 != runtime default 16384`, which presumably means it's 4096 on @AlexWaygood's system and 16384 on mine. I looked in the code and the default is set to `mmap.PAGESIZE`, which in turn is set from some system call at import time.
2023-02-01 22:43:50 +00:00
hamdanal
250befdef0
Fix optional USB attributes in pyserial's ListPortInfo ( #9654 )
...
Some USB specific attributes in pyserial's [`serial.tools.list_port_common.ListPortInfo`](https://github.com/python/typeshed/blob/main/stubs/pyserial/serial/tools/list_ports_common.pyi#L11-L24 ) class are not always available. They depend on the USB device and its driver correctly reporting these attributes. I discovered this recently with a new device that does not report its serial number. Only the Vendor ID `vid` and Product ID `pid` are guaranteed (This can be seen [here](https://github.com/pyserial/pyserial/blob/master/serial/tools/list_ports_linux.py#L52-L62 ) where `vid` and `pid` are always cast as `int` while other attributes are left as `str | None` for USB devices).
This is a follow up to #9347 and the discussion at https://github.com/python/typeshed/pull/9347#issuecomment-1358245865
2023-02-01 14:03:24 -08:00
Alex Waygood
1d7dda7fa1
stdlib: Add defaults for positional-only parameters ( #9655 )
2023-02-01 21:44:08 +00:00
Alex Waygood
35172c7aab
Stdlib: add some very large integer defaults ( #9651 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-02-01 20:10:28 +00:00
Alex Waygood
8000fbd386
Bump various test dependencies ( #9646 )
2023-02-01 06:23:40 -08:00
Alex Waygood
23e3dc9bd8
Fix stubtest errors on beautifulsoup4 ( #9648 )
...
Fixes #9645 .
2023-02-01 06:06:45 -08:00
Alex Waygood
8e7b78a8e8
Bump black to 23.1.0 ( #9647 )
2023-02-01 06:06:04 -08:00
Alex Waygood
7cd7ae46c0
Improve a few version-dependent tkinter functions ( #9637 )
2023-02-01 15:02:26 +02:00
Mehdi Drissi
d755da86dd
Tensorflow: Add more stubs ( #9560 )
...
Co-authored-by: Mehdi Drissi <mdrissi@snapchat.com >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-01-31 22:12:41 -08:00
Victor B
1cc8080c7e
Add stubs for zstd ( #9484 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-01-31 21:41:19 -08:00
Avasam
0e7365a7ef
Add defaults for params and constants in pyscreeze ( #9641 )
2023-01-31 17:56:29 -08:00
Alex Waygood
2539649560
Add a default for ssl.SSLContext.__new__ on 3.10+ ( #9635 )
2023-01-31 17:30:00 -08:00
Alex Waygood
510bd460d2
Improve statistics.median_grouped on <=3.10 ( #9636 )
2023-01-31 17:29:01 -08:00
Avasam
6c4059f188
Add defaults for params and constants in PyAutoGUI ( #9639 )
2023-01-31 17:26:03 -08:00
Avasam
b151e2396a
Add defaults for params and constants in pyinstaller ( #9640 )
2023-01-31 17:24:39 -08:00
Alex Waygood
cec6162146
Bump flake8-pyi to 23.1.2 ( #9643 )
2023-02-01 00:07:09 +00:00