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
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
Sebastian Rittau
5f850af3ba
Upgrade daily stubtest workflow to stubtest 0.920 ( #6615 )
2021-12-16 20:54:14 +01:00
Sebastian Rittau
3e49ed754d
Allow tringgering some Actions by hand ( #6613 )
2021-12-16 11:51:34 -08:00
Sebastian Rittau
dae0b127ca
Upgrade mypy to 0.920 ( #6611 )
...
Temporily pin mypy used for stubtest checks to 0.910, until the stubtest
problems are addressed.
2021-12-16 17:53:36 +01:00
Sebastian Rittau
c900c0e769
Fix Python 3.10.1 problems pointed out by stubtest ( #6604 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-12-16 07:05:45 -08:00
Alex Waygood
c164d21225
Add timeout attribute to _socket.socket ( #6607 )
2021-12-16 13:50:43 +01:00
Sebastian Rittau
f6e3bd19f3
Fix unittest.case for Python < 3.9 ( #6605 )
...
_LoggingWatcher and _AssertLogsContext were moved to unittest._log in
Python 3.9, but were in unittest.case until 3.8.
2021-12-16 13:36:01 +01:00