Commit Graph

389 Commits

Author SHA1 Message Date
Alex Waygood 2268955701 Remove several unused TypeVars (#6829) 2022-01-05 17:58:03 +02:00
Sebastian Rittau 4f4068243a Upgrade stubs to Pillow 9 (#6795)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-05 14:17:56 +02:00
Nipunn Koorapati b22f29bec1 Add google.protobuf.internal.api_implementation (#6802) 2022-01-03 22:00:19 +01:00
Joseph Young fdc5a568ab Add six.moves.copyreg six stubs (#6793) 2022-01-03 17:30:14 +01:00
Joseph Young 4538770404 Add missing functions and keyword arguments to aiofiles.os (#6785)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-02 20:08:00 +02:00
Alex Waygood 505ea72641 Never explicitly inherit from object in Python 3-only stubs (#6777) 2022-01-02 07:24:48 +01:00
Joseph Young fbf5982d4d Add regex stubs (#6713)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-30 21:15:42 +02:00
Akuli bae606da8d Enable stubtest for jack (#6727) 2021-12-29 11:42:28 +01:00
Alex Waygood ab893c91fd pygments: remove outdated TODOs (#6725) 2021-12-28 22:23:23 +02:00
Sebastian Rittau 22bf9e8a78 redis: Restore type annotations of ping() and save() (#6720) 2021-12-28 13:08:05 +02:00
Alex Waygood 8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian Rittau e6cb341d94 Update redis stubs to 4.1 (#6711)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-27 21:34:34 +02:00
Sebastian Rittau 14e5d16c3a Replace METADATA stubtest key with stubtest_apt_packages (#6704) 2021-12-27 17:28:59 +01:00
Alex Waygood 975b3e901b Always alias collections.abc.Set (#6712) 2021-12-27 17:09:47 +01:00
Sebastian Rittau 51a2cd1289 Enable stubtest for six (#6699) 2021-12-27 12:36:17 +02:00
Sebastian Rittau d065ee4aef Enable stubtest for aiofiles (#6698) 2021-12-26 15:54:42 +02:00
Sebastian Rittau 74cd202b2d Annotate return type of pygments.plugin.iter_entry_points (#6697)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-26 14:44:40 +01:00
Akuli 9efc0c0dca pygments: Annotate several generator functions (#6695) 2021-12-26 13:53:41 +01:00
Sebastian Rittau bb77f39b7c Add a 'stubtest' flag to METADATA.toml (#6687)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-25 17:02:57 +02:00
Sebastian Rittau 15958a2628 Fixes for third-party mock package (#6685)
Removed a few unused private classes and methods. They can be re-added if a user reports them missing.
2021-12-25 11:43:43 +02:00
Joseph Young b3a4b1f353 python-datetutil: WEEKDAYS and MONTHS can have arbitrary length tuples (#6689) 2021-12-25 10:18:38 +01:00
Rich Li 5fe2a26908 redis: Add stubs for lmove and blmove (#6586) 2021-12-25 01:50:53 +02:00
Sebastian Rittau aa329b248b Add execution_options to Session.get() (#6656)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-12-23 12:37:02 +02:00
Sebastian Rittau 5ca666631e Remove unused allowlist entries (#6671) 2021-12-23 12:23:25 +02:00
Anthony Sottile f9318703f3 fix typing for psutil sconn (#6669) 2021-12-22 20:22:13 -08:00
Sebastian Rittau 9bf2ceb963 Fix third-party issues found by stubtest (#6667) 2021-12-22 15:09:44 -08:00
Sebastian Rittau 8b5feeb101 Remove PIL.__main__ (#6665) 2021-12-22 23:17:40 +01:00
Kevin-Gruber bd0cbf41f4 adding stubs for passpy API (#6651)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-12-22 07:57:45 -08:00
Sebastian Rittau 426ce065b2 Various small SQLAlchemy type improvements (#6623) 2021-12-22 07:49:20 -08:00
Jelle Zijlstra 5205efcaa4 Fix Redis.zpopmin and zpopmax (#6642)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2021-12-21 07:57:46 -08:00
Sebastian Rittau 0cecceed90 Add some missing attributes and types to FPDF (#6618) 2021-12-21 07:54:04 -08:00
Sebastian Rittau ef17852999 SQLAlchemy: Partly annotate declarative API (#6647) 2021-12-21 07:40:37 -08:00
colons e1b6d0460a Fix return type of find_elements* (#6645) 2021-12-21 11:14:28 +01:00
Bill Schnurr 818e428603 Update Selenium webdriver with latest return types (#6565) 2021-12-20 18:26:49 -08:00
Anthony Sottile 43f0cb5533 add stripe.util.populate_headers (#6637) 2021-12-20 17:51:30 -08:00
Anthony Sottile afcf213936 fill out api methods for stripe.Customer (#6638) 2021-12-20 17:50:54 -08:00
Anthony Sottile 7983d49f73 fill out api stubs for stripe.Account (#6639) 2021-12-20 17:50:21 -08:00
Anthony Sottile ece3183c14 fill out api stubs for stripe.SubscriptionItem (#6640) 2021-12-20 17:48:09 -08:00
Anthony Sottile 3bf165d723 correct border= and fill= kwargs for ImageOps.expand (#6641) 2021-12-20 17:47:01 -08:00
Anthony Sottile 3008032076 pygments.formatters.get_all_formatters yields Formatters (#6636) 2021-12-20 15:21:10 -08:00
Sebastian Rittau 6f2ff7e895 Create SQLalchemy stubs using stubgen (#6585) 2021-12-17 09:38:23 -08:00
Stephen Rosen 806a5bcece Add jsonschema.protocols to library stubs (#6614)
`jsonschema.protocols.Validator` was introduced in `jsonschema` v4.3.0
It's also available under the name `jsonschema.Validator`.
2021-12-17 13:30:58 +01:00
Stephen Rosen df0a724c0f Always import Protocol from typing in stubs (#6617) 2021-12-17 13:12:22 +01:00
Shantanu 2ad00c9664 Use stubtest 0.920 (#6589)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-17 13:58:11 +02:00
Shantanu 1b80461b96 mypy_extensions: fix NoReturn, remove inaccurate comment (#6595) 2021-12-15 19:45:57 -08:00
Sebastian Rittau 968fd6d01d Add abstract methods to BaseTzInfo (#6579)
While these abstract methods don't exist at runtime, all sub-classes of
BaseTzInfo implement them. It can be useful to annotate variables with
BaseTzInfo and being able to call these methods on it.
2021-12-14 14:14:21 +01:00
kasium 383b5877bc Add stubs for flake8-plugin-utils (#6506) 2021-12-12 16:38:10 -08:00
kasium 53eae77983 Add stubs for flake8-2020 (#6555) 2021-12-10 20:55:23 +02:00
Sebastian Rittau 74ecc2904b Add stubs for ldap3 (#6561) 2021-12-10 19:18:07 +01:00
kasium 65f69a1c87 Add missing context proptery to MockSpan (#6549)
The property context should return a mocked context and not a regular one
2021-12-10 11:51:18 +01:00