Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Rittau 47905d2d19 stubsabot: Add stubsabot label to PRs (#10507) 2023-07-25 17:40:11 +02:00
Sebastian Rittau 9b94bd4e5f stubsabot: Add distributions argument (#10505)
[stubsabot] Add distributions argument

This allows to specify which explicitly which distributions to update.
Useful for testing.
2023-07-25 06:40:55 -07:00
Sebastian Rittau 26e8b9c68a [stubsabot] Include repository in issue text (#10488)
Also, get GitHub repository for diff from METADATA.toml, instead of
scraping it from PyPI.
2023-07-20 17:22:15 +02:00
Sebastian Rittau afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Sebastian Rittau a04cb3b058 Add stubs for qrcode (#10380) 2023-07-20 14:36:20 +02:00
Sebastian Rittau 7ea173c4ad Fix @patch when new is missing (#10459) 2023-07-14 12:53:13 +02:00
Sebastian Rittau 1925730585 [jsonschema] Use Incomplete instead of Any (#10451)
Replace `Any` with `Incomplete`
2023-07-13 13:34:24 +01:00
Sebastian RittauandAlex Waygood 19992e6212 Mark some errnos as darwin- or solaris-only (#10440)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-07-11 17:09:40 +01:00
Sebastian Rittau f96505474d Bump Pillow to 10.0.* (#10411) 2023-07-06 15:05:38 +01:00
Sebastian Rittau edff8874da [Pillow] Replace Any with Incomplete (#10409) 2023-07-06 14:48:50 +01:00
Sebastian Rittau 1e6b8a9b88 [Pillow] Update TiffImagePlugin for Python 3.11 (#10399)
Also type the methods forwarded from Fraction and replace
`Any` with `Incomplete`.
2023-07-06 15:34:49 +02:00
Sebastian Rittau 1e25866b23 Improve pytype compatibility handling (#10377) 2023-06-28 12:29:13 +02:00
Sebastian Rittau d2c87ac97d Bump redis to 4.6.0 (#10360)
Closes: #10359
2023-06-27 19:25:52 +01:00
Sebastian RittauandAlex Waygood b10f482e36 Bump mysqlclient to 2.2 (#10353)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-23 12:41:55 +01:00
Sebastian RittauandAlex Waygood c3ddf3201a Bump croniter to 1.4 (#10341)
Also require `bytes` for all `hash_id`s for consistency, even
if some methods might work with other types as well. But
using other types might hint at some inconsistent type
usage and be a source of possible bugs.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-21 14:37:30 +01:00
Sebastian RittauandAlex Waygood 06c2fb047a Bump setuptools to 68.0 (#10339)
* Any -> Incomplete in a few files
* Bump setuptools to 68.0.*

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-21 13:26:55 +01:00
Sebastian Rittau 5f9d05c7f5 TemporaryFile(): Handle one more case correctly (#10284) 2023-06-14 05:33:01 -07:00
Sebastian Rittau ce222e5cd7 Split requirements file into sections (#10309)
Also note that type checkers and linters should be pinned to a specific
version.
2023-06-12 20:18:16 +02:00
Sebastian Rittau be925c0d3f Check that linters/type checkers are pinned to an exact version (#10311) 2023-06-12 20:12:14 +02:00
Sebastian Rittau 5092f52c45 Update description of test scripts (#10310) 2023-06-12 18:42:33 +01:00
Sebastian Rittau 0fe724dfab Tighten tempfile() return types (#10232) 2023-06-07 21:57:13 -07:00
Sebastian Rittau 786bd22343 [aiofiles] Use file mode alias from _typeshed (#10233) 2023-06-07 06:14:03 -07:00
Sebastian Rittau 70d8d059a0 Make all tests executable (#10267) 2023-06-06 15:42:07 +02:00
Sebastian Rittau 15df17098a [PyYAML] Improve dump/serialize types (#10196)
* Add overloads to return `str` or `bytes`, instead of `Any`.
* Mark some arguments as keyword-only.
* Add missing default values.
2023-05-22 16:40:04 +02:00
Sebastian Rittau ff700e1b95 Fix return type of FPDF.output() (#10166) 2023-05-10 07:05:48 -07:00
Sebastian Rittau 5fdbf37c1f [requests] Update stubs to 2.30 (#10141) 2023-05-05 11:01:21 +01:00
Sebastian RittauandAlex Waygood f1c419e816 [fpdf2] Update stubs for fpdf 2.7.4 (#10136)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-05-03 16:52:43 +01:00
Sebastian Rittau ec1130adcc [fpdf2] Update to 2.7.1 (#9978) 2023-05-03 17:06:12 +02:00
Sebastian Rittau 81f6beda9e Document sys.std* typing (#10135) 2023-05-03 16:30:37 +02:00
Sebastian Rittau be0ef21167 [zipfile] Move protocol behind version gate (#10036)
This protocol is only used for our Python 3.8 stubs. Therefore it's best to limit its availability as much as
possible.
2023-04-12 15:07:49 +01:00
Sebastian Rittau 8f17863f0c [pyOpenSSL] Fix return type of SSLeay_version (#10037)
Closes: #10024
2023-04-12 15:01:30 +01:00
Sebastian Rittau 027460f11a Remove unnecessary ellipsis expressions (#9976)
Ignore flake8 F821 warnings in stub files
2023-03-29 13:28:06 +02:00
Sebastian Rittau 0bb57fcbc6 [zstd] Add ZSTD_(max_)threads_count methods (#9938)
Closes: #9935
2023-03-24 12:18:41 +00:00
Sebastian RittauandAlex Waygood 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
Sebastian Rittau f6f1fa3df4 [minidom] Annotate getElement* methods correctly (#9919) 2023-03-22 15:17:36 +00:00
Sebastian Rittau 104cdf9d0d [redis] Update stubs to 4.5.2 (#9912) 2023-03-21 20:26:41 +00:00
Sebastian RittauandAvasam a544b75320 [SQLAlchemy] Annotate row classes (#9568)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2023-03-15 00:57:54 -07:00
Sebastian Rittau 8877c12cdf [openpyxl] Update to 3.1, add more annotations (#9875)
Closes: #9644
2023-03-15 00:50:16 -07:00
Sebastian Rittau 05453b0c0a Update caldav to 1.2 (#9821)
Also add a few default values and replace some instances of Any with
Incomplete.
2023-02-27 13:42:33 +01:00
Sebastian Rittau 39487a8bab [redis] Update to 4.5.1 (#9697)
Also add a few argument defaults
2023-02-10 11:10:37 +00:00
Sebastian Rittau ad1e2bede1 [fpdf2] FPDF.add_font() accepts PurePaths (#9699) 2023-02-09 05:57:45 -08:00
Sebastian Rittau 565a1a07ad Remove note about Optional still being necessary sometimes (#9687) 2023-02-07 03:03:22 -08: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
Sebastian RittauandAlex Waygood 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
Sebastian Rittau eb4d17031f [fpdf2] Restore string default values (#9562)
Cf. #9546
2023-01-18 11:29:32 +00:00
Sebastian Rittau 7b848b4ede Update fpdf2 stubs to 2.6.1 (#9546) 2023-01-17 13:25:41 +01:00
Sebastian Rittau b8f337a452 SQLAlchemy: Annotate text() (#9498) 2023-01-11 15:01:11 +00:00
Sebastian Rittau b1cb9c8a8f Update SQLAlchemy stubs to 1.4.46 (#9464)
Replace `Any` with `Incomplete` where applicable
2023-01-05 19:37:12 +00:00
Sebastian Rittau feb9b2dc9f [influxdb-client] Annotate Point and partially client classes (#9442) 2023-01-02 18:14:39 +01:00
Sebastian Rittau 3e00c01ca6 Add stubs for influxdb-client (#9429) 2022-12-30 14:54:56 -08:00
Sebastian RittauandAlex Waygood 0cf685cc17 Fully annotate ExifRead (#9403)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-27 17:46:54 +00:00
Sebastian Rittau db6644790b Initial ExifRead stubs (#9401) 2022-12-23 12:37:44 +01:00
Sebastian Rittau f52099a22b Annotate more items in pika.channel (#9385) 2022-12-19 15:07:47 +00:00
Sebastian RittauandAlex Waygood 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
Sebastian Rittau 92d130f6b6 Distribute our pika stubs under an alternate name (#9358)
Cf. #9246
2022-12-14 11:36:13 +00:00
Sebastian Rittau d30941c747 Update to SQLAlchemy 1.4.45 (#9359)
Use Incomplete in touched files
2022-12-14 11:02:16 +00:00
Sebastian Rittau a74df38df0 Message.get_content_charset() returns None by default (#9344) 2022-12-09 07:19:18 -08:00
Sebastian Rittau 5b4adfde20 Disable pika uploads for now (#9257)
See #9246.
2022-11-23 12:21:04 +00:00
Sebastian Rittau 02942b710c Support "stub_distribution" and "upload" metadata fields (#9256) 2022-11-23 13:05:13 +01:00
Sebastian Rittau a46283c1cc Update fpdf2 stubs to 2.6 (#9236) 2022-11-22 20:44:53 -08:00
Sebastian Rittau 20a35057fa Further annotate pika (#9240) 2022-11-22 11:55:43 +00:00
Sebastian Rittau ebb5bddbdc Initial pika stubs (#9200) 2022-11-21 19:31:21 +01:00
Sebastian Rittau e7e94dd101 Make unittest.patch.* methods static (#7543) 2022-11-01 13:09:56 +01:00
Sebastian Rittau 96daaf60bf Remove references to master branch (#9060) 2022-11-01 13:02:38 +01:00
Sebastian Rittau 3aaf6b9999 'master' branch was updated to 'main' (#9045) 2022-11-01 12:57:57 +01:00
Sebastian Rittau ac563c6641 Update caldav stubs to 0.10 (#9044) 2022-10-31 07:04:31 -07:00
Sebastian Rittau b2d6d3c935 Update distutils stubtest allowlists for Python 3.11 release (#8985)
Closes: #8984
2022-10-26 00:18:09 +02:00
Sebastian Rittau fb2eb406a7 dateparser: add negative argument to get_date_from_timestamp (#8954)
Closes #8952
2022-10-21 00:45:53 -07:00
Sebastian Rittau 61de308e29 Update pyOpenSSL stubs to 22.1.* (#8838) 2022-10-04 05:29:16 -07:00
Sebastian Rittau 9b306c3367 Remove selenium stubs (#8753)
Closes: #7381
2022-09-16 15:39:14 +02:00
Sebastian Rittau 73fbb53475 Update setuptools stubs (#8345)
setuptools now vendors `distutils` as `setuptools._distutils`.
2022-07-20 18:44:22 +02:00
Sebastian Rittau 5534007189 Fix return type of email.header.decode_header() (#8337) 2022-07-19 20:43:48 +01:00
Sebastian Rittau ef443b6359 Re-enable SQLAlchemy mypy tests (#8282)
These used to crash if run twice in succession locally, but the crash has been fixed on mypy 0.971
2022-07-19 16:46:39 +01:00
Sebastian Rittau ba8ea2c911 Move Rune Tynan to former maintainers (#8306) 2022-07-15 22:13:27 +02:00
Sebastian Rittau 91fd79c158 Updates for Python 3.11.0b4 (#8288) 2022-07-13 13:10:20 +02:00
Sebastian Rittau a0f6fb5669 Turn requests.requests.packages into a module (#8281)
Remove obsolete class VendorAlias
2022-07-12 20:30:28 +02:00
Sebastian Rittau faae950ade Use error codes for type ignores (#8280)
Disable reportSelfClsParameterName for pytype as this is out of typeshed's
control

Closes: #7497
2022-07-12 20:15:49 +02:00
Sebastian Rittau 9a5c865034 Drop support for Python 3.6, part 1 (#8250)
* Document that typeshed support 3.7+.
* Don't run tests on Python 3.6.
* Remove Python 3.6 allow lists.
* Merge common allowlist items.

Part of #6189
2022-07-07 14:42:02 +02:00
Sebastian Rittau f135c6515d Fix size parameter of FPDF.set_font_size (#8234) 2022-07-04 12:23:31 +01:00
Sebastian Rittau 7b54854c90 Remove the dataclasses third-party stub (#8216)
dataclasses is part of the Python stdlib and the third-party package is
not supported past Python 3.6.
2022-06-30 12:14:29 +02:00
Sebastian Rittau ec7ab6d4d6 Mark the dataclasses stubs as no longer updated (#8215) 2022-06-30 11:47:36 +02:00
Sebastian Rittau 3c959d099b Update redis stubs to 4.3.4 (#8199)
Fixes #8196
2022-06-28 16:38:15 +01:00
Sebastian Rittau 9eed3275c3 tabulate: Add maxcolwidths arguments (#8132) 2022-06-22 11:48:48 +01:00
Sebastian Rittau 678c231e5b Add types for zxcvbn (#8089) 2022-06-21 04:34:48 -07:00
Sebastian Rittau 6a64e69054 Update redis stubs to 4.3 (#8108) 2022-06-20 12:09:38 -07:00
Sebastian Rittau 60507a08a2 Mark characteristic as no longer updated (#8038)
Part of #8012
2022-06-08 18:57:15 +02:00
Sebastian Rittau d8c0f25f0d Explain the no_longer_updated METADATA field (#8037) 2022-06-08 18:46:41 +02:00
Sebastian Rittau 214bf15dce Use "all +=" instead of duplicating the branches (#7865) 2022-06-07 13:32:19 +02:00
Sebastian Rittau 07ac9675e4 SQLAlchemy 1.4.37 fixes (#8003)
Closes: #8001
2022-06-01 09:50:40 +01:00
Sebastian Rittau d2728cf688 dateutil: Add dateutil.rrule.weekdays (#7968)
Closes: #7946
2022-05-27 11:15:03 +01:00
Sebastian Rittau 301caad709 Update mypy to 0.960 (#7948) 2022-05-25 14:44:22 +02:00
Sebastian Rittau a412ddb437 Update pyright (#7914)
Required for #7865
2022-05-21 19:15:06 +01:00
Sebastian Rittau adf48f1f96 Only run CI on pushes to main/master and pull requests (#7883)
Currently, when a maintainer opens a pull request from a branch in the
typeshed repository (instead of a fork), CI is run twice: once for the
PR and once for the push. This not only wastes CI minutes (and it seems
we're running into some limits lately), but also makes CI output twice
as large and more difficult to process.

The disadvantage is that a PR needs to be opened to run CI.
Alternatively, CI can be triggered manually.
2022-05-20 14:14:25 +02:00
Sebastian Rittau 3aaa1d0ada Upgrade pyright to 1.1.247 (#7867) 2022-05-18 19:56:19 +01:00
Sebastian Rittau 7ca82d5fb4 stubtest third party: remove extra line when skipping a distribution (#7864) 2022-05-18 20:15:55 +02:00
Sebastian Rittau b65ef3a722 Make third party stubtest output more succinct (#7853)
stubtest_third_party.py will now only print a single line when the test
succeeds for a certain distribution, unless the "-v" option is given.
When the test fails or "-v" is given, will still print the full output.

The success status is now colored to make spotting failures easier.

stdout/stderr is now used consistently: The distribution name and
success status is always printed to stdout, all other output goes to
stderr. Running the script with "2>/dev/null" will only show the success
status of the test, one per line.
2022-05-17 16:10:58 -07:00
Sebastian Rittau f21898abb9 Improve I/O types in socket.pyi (#7852)
* Use a protocol for socket.sendfile() "file" argument.
* Use concrete classes for socket.makefile() return types.
2022-05-17 06:11:50 -07:00
Sebastian Rittau e1bd9c73f0 Use I/O protocols in codecs.pyi (#7849) 2022-05-17 15:01:57 +02:00
Sebastian Rittau a05ee9740d Markdown: use I/O protocols (#7851) 2022-05-17 15:00:59 +02:00