Commit Graph

7748 Commits

Author SHA1 Message Date
Jean Hominal
0c0a58f36d contextvars: widen return value of ContextVar.get(default) (#9953) 2023-03-27 18:00:54 +02:00
Alex Waygood
b9fedd20ce Add defaults for third-party stubs A-D (#9952) 2023-03-27 16:49:58 +01:00
Francesc Elies
ce5f02fcdc [cffi] add some return types (#9949) 2023-03-27 16:15:47 +02:00
Andrew Svetlov
3ce1d0203d Reflect the latest reprlib updates (#9948) 2023-03-27 12:15:02 +01:00
Avasam
ccbe46173e Ran stubdefaulter for stubs/openpyxl (#9946) 2023-03-26 21:28:07 +01:00
Avasam
e5bab38a28 Bump pywin32 to 306.* (#9945)
Release: https://pypi.org/pypi/pywin32/306
Homepage: https://github.com/mhammond/pywin32
2023-03-26 18:58:35 +01:00
Adam Dangoor
ced150a7e8 Add types to urllib3.filepost stubs (#9924) 2023-03-26 15:15:36 +01:00
Shantanu
1537a598d0 email.message: fix return type of get_charsets (#9944)
Fixes #9885
2023-03-26 00:42:45 +00:00
github-actions[bot]
9c5f9cd000 [stubsabot] Bump pytz to 2023.2 (#9942)
Release: https://pypi.org/pypi/pytz/2023.2
Homepage: http://pythonhosted.org/pytz
2023-03-26 00:34:18 +00:00
Kevin Schoedel
ffe4a6d8bc stdlib: Fix some shlex types (#9941)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-03-25 18:32:43 +02:00
Avasam
2e59b81ffd Use of twisted in pika (#9494)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-24 22:51:59 -06:00
github-actions[bot]
65f188442c Update pyOpenSSL to 23.1.* (#9939)
Release: https://pypi.org/pypi/pyOpenSSL/23.1.0
Homepage: https://pyopenssl.org/
Diff: https://github.com/pyca/pyopenssl/compare/23.0.0...23.1.0

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 122.
 - Total lines of Python code deleted: 45.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-25 00:49:23 +00:00
Sebastian Rittau
0bb57fcbc6 [zstd] Add ZSTD_(max_)threads_count methods (#9938)
Closes: #9935
2023-03-24 12:18:41 +00:00
Nikita Sobolev
bacb8f7f40 uuid.uuid{3,5} accept bytes in 3.12 (#9936) 2023-03-24 13:03:41 +01:00
Davide Setti
bbfbc04747 pysftp: CnOpts.hostkeys can be None (#9937) 2023-03-24 13:00:57 +01:00
Alex Waygood
1d6a880a3d openpyxl: add baseline stubs for new modules (#9921) 2023-03-24 12:39:10 +01:00
github-actions[bot]
1cf2e73c32 [stubsabot] Bump flake8-bugbear to 23.3.23 (#9934)
Release: https://pypi.org/pypi/flake8-bugbear/23.3.23
Homepage: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/23.3.12...23.3.23

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 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: 48.
 - Total lines of Python code deleted: 26.
2023-03-24 00:25:29 +00:00
github-actions[bot]
2db7be077e [stubsabot] Bump regex to 2023.3.23 (#9933)
Release: https://pypi.org/pypi/regex/2023.3.23
Homepage: https://github.com/mrabarnett/mrab-regex
Diff: https://github.com/mrabarnett/mrab-regex/compare/2023.03.22...2023.3.23

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 2.
 - Total lines of Python code deleted: 2.
2023-03-24 00:25:06 +00:00
Sebastian Rittau
c7d805b142 [openpyxl] Annotate Worksheet and other items (#9892)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-23 23:45:00 +00:00
Francesc Elies
a34da85966 [cffi] cast source can be an int too (#9930)
[cffi] cast source can be an int too

Co-authored-by: Francesc Elies <francesc.elies@mbbm-ast.com>
2023-03-23 11:21:16 +00:00
Audrey Dutcher
00e3b6fc68 Add alternate type for cffi's from_buffer (#9925) 2023-03-23 11:05:27 +01:00
github-actions[bot]
66146b56b9 [stubsabot] Bump tensorflow to 2.12.* (#9926)
Release: https://pypi.org/pypi/tensorflow/2.12.0
Homepage: https://www.tensorflow.org/

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
2023-03-23 00:24:41 +00:00
github-actions[bot]
bcc23ecd48 [stubsabot] Bump redis to 4.5.3 (#9928)
Release: https://pypi.org/pypi/redis/4.5.3
Homepage: https://github.com/redis/redis-py
Changelog: https://github.com/redis/redis-py/releases
Diff: https://github.com/redis/redis-py/compare/v4.5.2...v4.5.3

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 2 files included in typeshed's stubs have been modified or renamed: `redis/asyncio/client.py`, `redis/asyncio/cluster.py`.
 - Total lines of Python code added: 58.
 - Total lines of Python code deleted: 6.
2023-03-23 00:22:28 +00:00
github-actions[bot]
83fa464175 [stubsabot] Bump regex to 2023.3.22 (#9927)
Release: https://pypi.org/pypi/regex/2023.3.22
Homepage: https://github.com/mrabarnett/mrab-regex
Diff: https://github.com/mrabarnett/mrab-regex/compare/2022.10.31...2023.03.22

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 6.
 - Total lines of Python code deleted: 8.
2023-03-23 00:22:05 +00:00
Avasam
d8e3f928b0 Add defaults for params and constants in python-xlib (#9642)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-22 20:39:04 +00:00
Adam Dangoor
19368ab964 Add type to requests.models.RequestEncodingMixin.path_url (#9923)
We can see at 7f694b79e1/requests/models.py (L104) that this always returns a string.
2023-03-22 19:20:40 +00:00
Francesc Elies
35a46915e6 Add missing types to pywin32.win32api (#9920)
Co-authored-by: Francesc Elies <francesc.elies@mbbm-ast.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-22 16:13:18 +00:00
Sebastian Rittau
f6f1fa3df4 [minidom] Annotate getElement* methods correctly (#9919) 2023-03-22 15:17:36 +00:00
David Salvisberg
2ed466d3cc Add stubs for translationstring (#9918) 2023-03-22 13:44:07 +01:00
Francesc Elies
d13bcbb76e [minidom] add missing return types (#9917) 2023-03-22 12:21:05 +01:00
github-actions[bot]
ffa4999e31 [stubsabot] Bump httplib2 to 0.22.* (#9916)
Release: https://pypi.org/pypi/httplib2/0.22.0
Homepage: https://github.com/httplib2/httplib2
Diff: https://github.com/httplib2/httplib2/compare/v0.21.0...v0.22.0

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 21.
 - Total lines of Python code deleted: 5.
2023-03-22 00:14:37 +00:00
Sebastian Rittau
104cdf9d0d [redis] Update stubs to 4.5.2 (#9912) 2023-03-21 20:26:41 +00:00
Nikita Sobolev
130ba2ea60 Support SupportsIndex in constructors for all datetime objects (#9915)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-03-21 19:56:31 +03:00
Amin Alaee
b6564d976b logging.LogRecord: improve annotation for msg (#9914)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-21 15:40:37 +00:00
Alex Waygood
dd2818a41d Stdlib: add container default values (#9909) 2023-03-21 09:12:34 +01:00
github-actions[bot]
151159709d [stubsabot] Bump beautifulsoup4 to 4.12.* (#9910)
Release: https://pypi.org/pypi/beautifulsoup4/4.12.0
Homepage: https://www.crummy.com/software/BeautifulSoup/bs4/
2023-03-21 00:26:02 +00:00
Alex Waygood
f3fc792620 Bump flake8-pyi test dependency to 23.3.1 (#9906) 2023-03-20 19:19:01 +01:00
github-actions[bot]
8080e491d2 [stubsabot] Bump tzlocal to 4.3 (#9903)
Release: https://pypi.org/pypi/tzlocal/4.3
Diff: https://github.com/regebro/tzlocal/compare/4.2...4.3

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 2 files included in typeshed's stubs have been modified or renamed: `tzlocal/utils.py`, `tzlocal/windows_tz.py`.
 - Total lines of Python code added: 67.
 - Total lines of Python code deleted: 41.
2023-03-19 07:44:32 +00:00
Alex Waygood
ca55889329 distutils/setuptools: Don't use wildcards for allowlist entries (#9900) 2023-03-17 14:05:12 -07:00
Henry Schreiner
2d990ee2f7 Fill out more annotations for distutils & setuptools dist (#9895)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-03-17 18:48:24 +00:00
Henry Schreiner
629f12e9a1 [setuptools] Fully annotate Extension.__init__ (#9899)
Add defaults to distutils.Extension.__init__
2023-03-17 16:44:51 +01:00
James Hilton-Balfe
a7c7667f7e Add better types for predicate parameter to inspect.getx functions (#9891)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-17 14:41:18 +00:00
Clément Pinard
557554f1d6 [pycocotools] Fix COCOeval.eval and Params.areaRng (#9897)
* Rename `_EvaluationResult` to `_ImageEvaluationResult`
* Add new `_EvaluationResult`
* Fix type of `COCOeval.eval`
* Correct Params.areaRng which is in fact a list of pairs
2023-03-17 14:02:19 +01:00
Henry Schreiner
3a82796d1e [distutils] Add generated methods to Distribution (#9896) 2023-03-17 12:14:36 +01:00
Henry Schreiner
bcff9cd51f distutils.command.build_ext: add more annotations to get_ext_* methods (#9894)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2023-03-16 20:29:11 +00:00
Henry Schreiner
ed1fd8fc35 Add missing distribution attribute to distutils.cmd.Command (#9893)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2023-03-16 20:21:23 +00:00
Henry Schreiner
eb3f8f3307 Add remaining types to setuptools.build_meta (#9890)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-16 17:01:39 +00:00
Sebastian Rittau
a544b75320 [SQLAlchemy] Annotate row classes (#9568)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2023-03-15 00:57:54 -07:00
Mehdi Drissi
1d15121f1d Tensorflow protobuf stubs (#9873)
Co-authored-by: Mehdi Drissi <mdrissi@snapchat.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-03-15 00:51:16 -07:00
Sebastian Rittau
8877c12cdf [openpyxl] Update to 3.1, add more annotations (#9875)
Closes: #9644
2023-03-15 00:50:16 -07:00