Stephen Morton
76537eb81b
BZ2Compressor and BZ2Decompressor live in the _bz2 module ( #12976 )
2024-11-08 17:47:00 +01:00
Stephen Morton
65af6e48b5
LZMADecompressor, LZMACompressor, and LZMAError live in _lzma ( #12977 )
2024-11-08 17:46:29 +01:00
Stephen Morton
460c09d122
add _contextvars for proper naming ( #12981 )
...
On 3.9 and lower, the contextvars types call themselves builtins.*
which we can't and won't match. This improves naming fidelity for
3.10 and newer.
2024-11-08 17:45:59 +01:00
Blaze
30c9af5aaa
Add listener attribute to QueueHandler ( #12986 )
2024-11-08 05:55:03 -08:00
Stephen Morton
27286c6821
Struct class lives in _struct ( #12980 )
...
This one is an improvement on 3.9+. On 3.8, the Struct class
calls itself `builtins.Struct` instead, which we can't and won't
match. `struct.error` is defined in `_struct.c`, but always called
itself `struct.error`.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-11-07 20:10:50 -08:00
Stephen Morton
a0165ae31a
add _dbm and _gdbm to align naming of error types with runtime ( #12978 )
2024-11-07 17:21:46 -08:00
Stephen Morton
1c78402e8a
SimpleQueue and Empty live in _queue ( #12979 )
2024-11-07 16:45:54 -08:00
Brian Schubert
951c0b82e8
Update logging.config.fileConfig to accept any Mapping for defaults ( #12973 )
2024-11-07 13:12:24 -08:00
Sebastian Rittau
0d4a94803a
Remove docopt ( #12975 )
2024-11-07 19:51:15 +01:00
Brian Schubert
dafd67c2cc
Mark OSError.strerror as sometimes None ( #12974 )
2024-11-07 08:08:28 -08:00
Avasam
502e168cc6
Mark docopt as obsolete in favor of docopt-ng ( #12965 )
2024-11-07 16:19:48 +01:00
github-actions[bot]
5161a236a0
[stubsabot] Bump regex to 2024.11.6 ( #12967 )
2024-11-07 09:44:01 +01:00
renovate[bot]
b674bfaebf
Update dependency pyright to v1.1.388 ( #12969 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-06 18:29:31 -08:00
Agriya Khetarpal
3d853d5fa8
Improve path-related type hints for setuptools.Extension() and distutils.CCompiler() ( #12958 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2024-11-06 17:51:48 -05:00
Colin Watson
1ae7e615c0
Loosen type of fileobj argument to TarFile.addfile ( #12961 )
...
It only seems to need something it can read bytes from, rather than a
full-fledged `IO[bytes]`.
2024-11-06 06:10:25 -08:00
Sebastian Rittau
8dd43718bc
Update pyRFC3339 to 2.0.1 ( #12960 )
2024-11-06 06:08:33 -08:00
github-actions[bot]
6c3a534f9a
[stubsabot] Mark caldav as obsolete since 1.4.0 ( #12957 )
2024-11-06 11:09:16 +01:00
Stephen Morton
7b68c81f50
move various cases of 'stub does not have *args argument' to "don't fix" ( #12956 )
2024-11-05 07:57:45 +01:00
Stephen Morton
f314631fcb
remove unused io-related allowlist entries ( #12955 )
...
fallout from https://github.com/python/typeshed/pull/12947
fixes https://github.com/python/typeshed/issues/12954
2024-11-04 17:22:08 -08:00
Brian Schubert
1a1970d950
Update getopt to accept any iterable for longopts ( #12950 )
2024-11-04 22:38:17 +01:00
Avasam
5243d30744
Bump setuptools to 75.3.* ( #12928 )
2024-11-04 16:18:52 +01:00
Stephen Morton
84dfa4a8fc
Fix FileLoader.get_resource_reader signature ( #12946 )
...
Move stubtest allowlist entries to "can't be fixed" section
2024-11-04 16:16:14 +01:00
Stephen Morton
1a4631f0d2
Remove fake base class ipaddress._BaseInterface ( #12949 )
...
Also make hostmask a property to improve stubtest
2024-11-04 15:59:21 +01:00
Stephen Morton
9c8bc640a3
a couple stubtest fixes in multiprocessing ( #12948 )
2024-11-04 06:42:11 -08:00
Stephen Morton
e37ac25928
clean up io methods ( #12947 )
...
fixes for stubtest and default values
2024-11-04 06:39:25 -08:00
Danny Yang
348c44f468
Improve pymysql stubs ( #12942 )
...
Co-authored-by: Shamil <ashm.tech@proton.me >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-11-02 16:27:01 -07:00
sobolevn
04ed1db155
Bump braintree to 4.31.* ( #12934 )
2024-11-01 22:19:38 -07:00
github-actions[bot]
80b9bcfb43
[stubsabot] Bump flake8-bugbear to 24.10.31 ( #12938 )
...
Release: https://pypi.org/pypi/flake8-bugbear/24.10.31
Homepage: https://github.com/PyCQA/flake8-bugbear
Repository: https://github.com/PyCQA/flake8-bugbear
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/24.8.19...24.10.31
Stubsabot analysis of the diff between the two releases:
- 1 public Python file has been added: `tests/b041.py`.
- 0 files included in typeshed's stubs have been deleted.
- 1 file included in typeshed's stubs has been modified or renamed: `bugbear.py`.
- Total lines of Python code added: 103.
- Total lines of Python code deleted: 9.
If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR
Note that you will need to close and re-open the PR in order to trigger CI
Co-authored-by: stubsabot <>
2024-11-01 21:44:16 -07:00
Danny Yang
7786587c88
Fix type annotations for google-cloud-ndb ( #12943 )
2024-11-01 21:43:18 -07:00
Vincent Meurisse
898cb55af3
Update type for psutil.cpu_count ( #12941 )
...
The function can return None:
567438cd3e/psutil/__init__.py (L1665-L1667)
2024-11-01 07:50:03 -07:00
Brian Schubert
d262beb075
Fix callback parameter type in ssl.SSLContext.set_psk_server_callback ( #12932 )
2024-10-31 08:04:55 -07:00
renovate[bot]
355abb197e
Update dependency pyright to v1.1.387 ( #12929 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-31 08:15:38 +00:00
Stephen Morton
6029bf1819
inheritance for zipimporter ( #12920 )
2024-10-29 19:47:56 +01:00
Alex Waygood
01e7e80bc7
Add types.ModuleType.__doc__ ( #12918 )
2024-10-29 07:09:47 -07:00
Sebastian Rittau
7838ab5f98
[waitress] Update to 3.0.1 ( #12917 )
2024-10-29 10:15:01 +00:00
Stephen Morton
0301510114
Naming and inheritance for importlib ( #12775 )
...
This MR breaks out _frozen_importlib_external (which is the same
thing as importlib._bootstrap_external) and _frozen_importlib
(which is the same thing as importlib._bootstrap).
2024-10-29 11:09:00 +01:00
github-actions[bot]
53ee9191c2
[stubsabot] Bump croniter to 4.0.0 ( #12914 )
2024-10-29 09:01:47 +01:00
Avasam
335cc91b70
Bump tensorflow to ~=2.18.0 ( #12916 )
...
* Tensorflow proto script update
* Manual stubtest changes
* Use Path for arg type
2024-10-28 20:32:31 -07:00
Avasam
e92f98ccda
Add win32com.gen_py ( #12901 )
2024-10-28 11:50:31 +01:00
Avasam
bff5547abc
Use lib/ts_utils for scripts/sync_protobuf ( #12913 )
...
- Simplified `download_file` error handling (400+ return codes already raised errors!)
- Moved `update_metadata` from `scripts/sync_protobuf/_utils.py` to `lib/ts_utils/metadata.py`
- Improved `update_metadata` to support any key (values unvalidated atm) and return the modified dictionary
- Updated `scripts/stubsabot.py` to use `update_metadata`
- Updated `scripts/sync_protobuf/*` to use `lib/ts_utils`
- Updated `scripts/sync_protobuf/tensorflow.py` and `scripts/sync_protobuf/google_protobuf.py` to use the version directly from the `METADATA.toml` file
2024-10-28 11:47:52 +01:00
Avasam
c225ac7587
Bump pyinstaller to 6.11.* ( #12911 )
2024-10-27 22:03:17 +01:00
Sam Bull
601ce5a4b0
OSError.errno can be None ( #12910 )
2024-10-27 20:51:23 +00:00
Ekin Dursun
61ba4de28f
Change return type of as_completed in Python 3.13 ( #12912 )
2024-10-27 16:33:35 +00:00
Sebastian Rittau
ec1c327679
[croniter] Update to 3.0.4 ( #12909 )
2024-10-26 23:10:35 +02:00
Brian Schubert
efccd7455a
hashlib: fix sha3 and shake hash constructors, remove hash object __init__s ( #12906 )
2024-10-25 07:14:40 -07:00
Tamir Duberstein
fc8bff1b26
Add os.process_cpu_count() for 3.13 ( #12905 )
2024-10-25 06:51:38 -07:00
renovate[bot]
b954cd705c
Update most test/lint dependencies ( #12903 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-25 10:51:41 +01:00
Sebastian Rittau
701cd065b8
[CI] Switch to macos-latest ( #12897 )
...
macos-12 is deprecated and will be removed:
https://github.com/actions/runner-images/issues/10721
2024-10-24 11:00:11 -07:00
Randolf Scholz
10183237c7
Make all params positional-only in slice.__new__ ( #12900 )
...
positional only __new__
2024-10-24 18:02:33 +01:00
Thanos
65405e9ef2
Make slice generic ( #11637 )
2024-10-24 17:40:29 +02:00