Commit Graph

376 Commits

Author SHA1 Message Date
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
kasium
c96892f3b9 Add stubs for flake8-typing-imports (#6556) 2021-12-10 11:50:46 +01:00
kasium
f929d30ec0 Add stubs for hdbcli (#6550)
hdbcli is the python dbapi for SAP HANA. Not all methods/attributes are 100% compatible with PEP 249.
2021-12-09 14:29:06 +01:00
Jelle Zijlstra
384e309f53 pytz: rework stubs (#6551) 2021-12-09 09:24:44 +01:00
kasium
e2958f8ee7 Adjust opentracing return types for mocks (#6527) 2021-12-08 18:04:25 +01:00
kasium
c569be6947 Add stubs for flake8-bugbear (#6543) 2021-12-08 18:02:47 +01:00
Abhyudaya Sharma
b3a31b39fa fix: paramiko.HostKeyEntry.hostnames is a list (#6544) 2021-12-08 13:51:37 +02:00
Akuli
91465a1d07 toposort: Make argument types less restrictive (#6531) 2021-12-07 16:26:09 +01:00
Michael A. Smith
6c9efbae9d Updated stubs to jsonschema 4.2 (#6486) 2021-12-06 17:27:33 +01:00
kasium
df8ba001f2 Add stubs for flake8-docstrings (#6507)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-06 13:15:26 +02:00
kasium
ff68746388 Mark some fields as ClassVars (#6510) 2021-12-06 12:13:40 +01:00
Sebastian Rittau
4ff23ba762 caldav: Update DAVError and AuthorizationError (#6508) 2021-12-06 13:05:10 +02:00
Samuel T
2610c5ee37 Create simplejson.errors (#6492) 2021-12-05 12:32:37 +02:00
Manfred Kaiser
56c45528b7 paramiko.Channel - mark arguments as also accepting bytes (#6276) 2021-12-04 17:31:27 +01:00