Commit Graph

5645 Commits

Author SHA1 Message Date
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
3fb2bcd4c1 Restore stubtest 0.930 (#6663) 2021-12-22 20:18:19 -08:00
Sebastian Rittau
9bf2ceb963 Fix third-party issues found by stubtest (#6667) 2021-12-22 15:09:44 -08:00
Joseph Young
b842b21770 Add email.quoprimime stub (#6664)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-23 00:56:57 +02:00
Sebastian Rittau
2a3ff630e8 Fix return type of ParserBase.error (#6666)
As this is an abstract method, NoReturn is problematic as deriving
classes (for example in beautifulsoup4 or fpdf2) have an incompatible
return type.
2021-12-22 23:26:02 +01:00
Joseph Young
d6f062314f Add email.base64mime stub (#6659) 2021-12-23 00:25:00 +02:00
Sebastian Rittau
8b5feeb101 Remove PIL.__main__ (#6665) 2021-12-22 23:17:40 +01:00
Sebastian Rittau
ca87296daf Update to mypy 0.930 (#6660)
* Update to mypy 0.930

* Temporarily pin stubtest to 0.921
2021-12-22 12:10:45 -08:00
Alex Waygood
1ec2387da1 Fix 'object.__reduce__' (#6662)
Reverts regressions introduced by #6292. Fixes #6661.
2021-12-22 12:08:43 -08:00
Joseph Young
40f2cb6e39 HTMLParser: Add missing stubs for attributes and methods (#6658)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2021-12-22 19:32:35 +02: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
bf246b28a9 Update to mypy 0.921 (#6657)
Test third-party stubs with typeshed from mypy
2021-12-22 07:57:07 -08:00
Jelle Zijlstra
b0453811ed add (Base)ExceptionGroup (#6655)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2021-12-22 07:56:35 -08:00
Sebastian Rittau
426ce065b2 Various small SQLAlchemy type improvements (#6623) 2021-12-22 07:49:20 -08:00
Jelle Zijlstra
85712073ac Remove duplicate type from ArgumentParser.add_argument (#6652) 2021-12-22 08:59:23 +01:00
Jelle Zijlstra
14268f64e5 Widen MutableMapping.update type (#6653) 2021-12-22 08:54:05 +01:00
Jelle Zijlstra
e3ea71c018 Add comment to LogRecord.message (#6654) 2021-12-22 08:49:35 +01:00
Sebastian Rittau
0095536e6c Add some DB API 2.0 protocols and types (#6643)
Closes: #1037
2021-12-21 21:14:21 -08:00
Alex Waygood
a7c9788948 Improve stub for enum.property (#6648) 2021-12-21 21:11:07 -08:00
Alex Waygood
64b3dd875f Increase pyright strictness for some xml files (#6649) 2021-12-21 18:31:30 +01: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
Sebastian Rittau
387ef81883 Return Supports(A)Next from (a)iter (#6035)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-12-20 19:15:59 -08:00
Anthony Sottile
60f2d2f86f improve urlencode(...) annotation for quote_via (#6345) 2021-12-20 18:30:35 -08:00
DevilXD
c51438e132 Use Literal instead of int for logging levels (#6610) 2021-12-20 18:29:04 -08:00
Bill Schnurr
818e428603 Update Selenium webdriver with latest return types (#6565) 2021-12-20 18:26:49 -08:00
Randolf Scholz
4f9b45ff4c Logger.getChild subclass compatible typehint (#6609)
Co-authored-by: Randolf Scholz <rscholz@ismll.de>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2021-12-20 18:11:42 -08:00
Alex Waygood
519d70097b Update enum.pyi (#6629) 2021-12-20 17:51:48 -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
Numerlor
1ae4adac4b Fix ctypes.FormatError code parameter to be optional (#6635) 2021-12-20 15:30:24 -08:00
Anthony Sottile
3008032076 pygments.formatters.get_all_formatters yields Formatters (#6636) 2021-12-20 15:21:10 -08:00
Alex Waygood
2173c44117 Correct return type of asynccontextmanager in 3.10 (#6634) 2021-12-20 17:58:13 +01:00
Pavel Karateev
b1b958def2 Add __note__ to BaseException in Python 3.11 (#6633) 2021-12-20 07:27:04 -08:00
Alex Waygood
e6911530d4 collections: remove redundant method redefinitions (#6630) 2021-12-19 23:38:42 +01:00
Alex Waygood
5dcca3fe46 Improve stubs for email.policy (#6631)
* Add the ABCMeta metaclass, present at runtime.
* Add missing attributes from the allowlist, which are documented.
* Annotate the __init__ methods according to the documentation.
2021-12-19 23:38:08 +01:00
Alex Waygood
12b79f64d7 Remove incorrect deque method overloads (#6628)
As the current comment in the source code states, these methods don't really take slices. It's surely better just to add `# type: ignore` comments, rather than have an incorrect stub.
2021-12-18 12:00:03 -08:00
Alex Waygood
4f7f30a8c4 Use SupportsKeysAndGetItem in most Mapping constructors (#6626) 2021-12-18 11:33:00 -08:00
Alex Waygood
ae725c3f10 Add test to ensure certain names are not imported from typing_extensions (#6619) 2021-12-17 14:50:25 -08:00
Alex Waygood
0b75d71303 Add a structseq class to _typeshed (#6560)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-17 13:42:09 -08:00
Jelle Zijlstra
183a43a7e0 Fixes to curses stubs (#6620) 2021-12-17 18:39:00 +01: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