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
Alex Waygood
9e71de0421
Improve several stdlib setdefault methods ( #9612 )
2023-01-31 15:39:24 -08:00
Rodrigo Silva
064f7af176
PyAutoGui: Add more reexports from pyscreeze (#9634 )
...
Add remaining methods from pyscreeze
2023-01-31 12:03:08 +00:00
Eclips4
3b4dbe36d4
ctypes._CData: Fix field name ( #9633 )
2023-01-31 09:16:39 +01:00
Alex Waygood
c54a1a9e16
urllib.parse: Fix issues with TypeVar usage and default values (#9629 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-01-31 02:21:50 +00:00
Alex Waygood
a6919227be
Add several version-dependent default values to parameters in the stdlib ( #9631 )
2023-01-31 01:21:39 +00:00
Alex Waygood
81463b9995
tempfile.SpooledTemporaryFile: fix overloads (#9627 )
2023-01-30 17:04:18 -08:00
Alex Waygood
8a098a8601
Various asyncio classes: remove the loop argument on 3.10 ( #9630 )
2023-01-30 16:55:08 -08:00
Alex Waygood
94065d3aa5
Fix typo in tests/regr_test.py ( #9628 )
...
It looks like in #9382 , I reintroduced the bug that I previously fixed in #9349
2023-01-30 22:56:44 +00:00
Alex Waygood
9099403d58
builtins.pow: Add default values to <py38 branches; remove incorrect = ...s for the 13th overload (#9610 )
2023-01-30 18:12:50 +01:00
Alex Waygood
b748a9a543
distutils.filelist overloads: Remove unnecessary = ...s (#9619 )
2023-01-30 18:02:57 +01:00
Alex Waygood
7958a7f934
RawConfigParser.__init__: fix overloads (#9613 )
2023-01-30 18:00:43 +01:00
Alex Waygood
b5a26d1ca2
email.message: Fix invalid TypeVar usage; add some default values (#9620 )
2023-01-30 17:56:29 +01:00
Alex Waygood
6011cac0cc
Stdlib: fix three trivial issues with parameter defaults ( #9618 )
2023-01-29 21:40:56 -08:00
Shantanu
398bd90b8e
whatthepatch: add parse_git_binary_diff ( #9616 )
...
Added in 1.0.4
https://github.com/cscorley/whatthepatch/pull/whatthepatch
Fixes #9615
2023-01-30 00:49:49 +00:00
Alex Waygood
1b5bd63f78
Bump isort to 5.12.0 ( #9617 )
2023-01-29 16:37:55 -08:00
Alex Waygood
dd3aedd133
Correct str.maketrans and collections.UserString.maketrans ( #9611 )
2023-01-29 11:45:08 -08:00
Avasam
2ffd867f25
Increase mypy_primer comment length ( #9598 )
2023-01-29 11:43:38 -08:00
Alex Waygood
25b3999a10
croniter: complete stubs ( #9584 )
2023-01-29 11:41:09 -08:00
Alex Waygood
5dfee6aa66
Add some missing py311+ constants to sre_constants.pyi ( #9614 )
2023-01-29 11:33:37 -08:00
Alex Waygood
c9f17d80fa
_bisect: Remove incorrect = ...s for several overloads (#9609 )
2023-01-29 10:06:39 -08:00
github-actions[bot]
808a431a57
[stubsabot] Mark SQLAlchemy as obsolete since 2.0.0 ( #9595 )
...
Release: https://pypi.org/pypi/SQLAlchemy/2.0.0
Homepage: https://www.sqlalchemy.org
2023-01-29 01:52:18 +00:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Alex Waygood
25e02db42c
Fix typo in parse_metadata.read_stubtest_settings ( #9605 )
...
Fixes #9603
2023-01-29 00:40:42 +00:00
github-actions[bot]
fba8e084b0
[stubsabot] Bump python-slugify to 8.0.* ( #9602 )
...
Release: https://pypi.org/pypi/python-slugify/8.0.0
Homepage: https://github.com/un33k/python-slugify
Diff: https://github.com/un33k/python-slugify/compare/v7.0.0...v8.0.0
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: `slugify/__version__.py`, `slugify/slugify.py`.
- Total lines of Python code added: 3.
- Total lines of Python code deleted: 3.
2023-01-29 00:27:58 +00:00
Alex Waygood
9cd20ce095
Improve stubsabot logic for finding the first release with a py.typed file ( #9600 )
2023-01-28 18:03:25 +00:00
wookie184
0024dc4f33
Add some missing Self return annotations in redis ( #9601 )
2023-01-28 16:47:29 +00:00
Alex Waygood
b316dd947e
Bump flake8-pyi to 23.1.1 ( #9599 )
2023-01-28 07:39:30 -08:00
Alex Waygood
32ebe323f5
Use a TypeGuard for dataclasses.is_dataclass(); refine asdict(), astuple(), fields(), replace() ( #9362 )
2023-01-28 15:14:22 +00:00
Alex Waygood
c216b74e39
Centralize METADATA.toml parsing in the test suite ( #9534 )
2023-01-28 15:13:46 +00:00
Alex Waygood
7f986bdf85
Add more overloads to the re stubs to help out pyright ( #9592 )
2023-01-27 18:32:50 -08:00
github-actions[bot]
18c46619f5
[stubsabot] Bump influxdb-client to 1.36.* ( #9594 )
...
Release: https://pypi.org/pypi/influxdb-client/1.36.0
Homepage: https://github.com/influxdata/influxdb-client-python
Diff: https://github.com/influxdata/influxdb-client-python/compare/v1.35.0...v1.36.0
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.
- 4 files included in typeshed's stubs have been modified or renamed: `influxdb_client/client/flux_table.py`, `influxdb_client/client/write/point.py`, `influxdb_client/client/write_api.py`, `influxdb_client/version.py`.
- Total lines of Python code added: 151.
- Total lines of Python code deleted: 16.
2023-01-27 00:30:21 +00:00
github-actions[bot]
99ea07a463
[stubsabot] Bump flake8-docstrings to 1.7.* ( #9589 )
...
Release: https://pypi.org/pypi/flake8-docstrings/1.7.0
Homepage: https://github.com/pycqa/flake8-docstrings
Diff: https://github.com/pycqa/flake8-docstrings/compare/1.6.0...1.7.0
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: `flake8_docstrings.py`.
- Total lines of Python code added: 93.
- Total lines of Python code deleted: 94.
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 <>
2023-01-26 08:25:20 +01:00
Rodrigo Silva
05eadf5cd8
python-xlib: remove workaround for pytype ( #9590 )
2023-01-25 17:09:18 -08:00
Adam Orr
0fe3ef28fe
codecs: _buffer_encode returns (bytes, int) ( #9587 )
2023-01-25 20:39:21 +01:00
Alex Waygood
a9b4fa0a32
Fix some stubtest complaints before they happen ( #9585 )
...
Add missing objects to various stubs
2023-01-24 21:45:31 +00:00
Sebastian Rittau
4148a7b73e
Upgrade bleach stubs for 6.0 ( #9583 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-01-24 15:46:34 +00:00
Alex Waygood
307aadc632
Improve the signature of types.MappingProxyType.__eq__ ( #9581 )
2023-01-23 14:41:27 +01:00
Jukka Lehtosalo
d5b88c552c
Add __eq__ to types.MappingProxyType ( #9580 )
...
The type has a custom __eq__:
https://github.com/python/cpython/blob/v3.11.1/Objects/descrobject.c#L1906
This helps fix this mypy false positive when using `--strict-equality`:
```
from types import MappingProxyType
p = MappingProxyType({'x': 1})
d = {'x': 1}
print(p == d) # error: Non-overlapping equality check
```
The fragment prints `True` so the comparison is valid.
2023-01-23 09:55:25 +00:00
Seth Michael Larson
ebba92c986
Add SSLContext.security_level property for Python 3.10 ( #9577 )
2023-01-22 19:28:44 +01:00
gandalf3
b11e2e37c6
create_datagram_endpoint expects a str when family=AF_UNIX ( #9574 )
...
Since python 3.7, asyncio.loop.create_datagram_endpoint expects the
arguments `local_addr` and `remote_addr` to be `str` or `None` when the
argument family=`socket.AF_UNIX` and the argument `sock` is `None` or
also a unix socket.
2023-01-21 22:00:44 +01:00
github-actions[bot]
a8e4b3a018
[stubsabot] Bump flake8-bugbear to 23.1.20 ( #9576 )
...
Release: https://pypi.org/pypi/flake8-bugbear/23.1.20
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.1.17...23.1.20
2023-01-21 00:22:24 +00:00