Matteo Centenaro
6907d7f7c6
Update types in urllib3.util.retry ( #6892 )
2022-01-12 10:06:49 +01:00
Akuli
423ae7f8fd
requests: Remove an unused allowlist entry ( #6897 )
2022-01-12 00:53:43 -08:00
Alex Grönholm
143d57690e
Corrected (Base)ExceptionGroup names and types ( #6895 )
...
The second argument to `ExceptionGroup` is positional-only. The `exceptions` property always returns a tuple, no matter what the type of the original `__exceptions` argument is.
2022-01-11 15:02:08 -08:00
Nikita Sobolev
3101849451
Use Literal type in winsound ( #6891 )
2022-01-11 04:26:37 -08:00
AChenQ
d0907f1073
urllib3: add "__version__" ( #6890 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2022-01-10 19:33:30 -08:00
ThePhilgrim
7191d12e24
Add stubs for playsound ( #6881 )
2022-01-10 22:23:28 +02:00
Alex Waygood
7d33ff330a
Clean up several version-dependent modules ( #6885 )
2022-01-10 05:57:08 -08:00
Nikita Sobolev
a8c9c194b4
Improve cmp_op in opcode ( #6884 )
2022-01-10 12:07:04 +01:00
Philip Dexter
9de17bd5ae
Fix urllib3.util.Retry.sleep type ( #6883 )
2022-01-10 10:58:23 +01:00
Nipunn Koorapati
fc4ba3ac64
Bump protobuf to 3.19.2 ( #6879 )
2022-01-10 10:03:41 +01:00
Alex Waygood
96c9abb058
Always use _typeshed.Self, where applicable ( #6880 )
...
* Always use `_typeshed.Self`, where applicable
* Revert changes to `google-cloud-ndb` (ambiguous)
* Remove empty line added by script
* Revert changes to `stubs/python-dateutil/dateutil/relativedelta.pyi`
* Manually add a few more that the script missed
* Improve `filelock` annotation
Source code here: 79ec7b2826/src/filelock/_api.py (L207)
* Improve `opentracing/scope` annotation
Source code here: 3e1d357a34/opentracing/scope.py (L71)
* Improve `redis/client` stub
Source code here: 15f315a496/redis/client.py (L1217)
* Improve `redis/lock` annotation
Source code here: 15f315a496/redis/lock.py (L155)
* Improve `requests/models` annotation
Source code here: d718e75383/requests/models.py (L653)
2022-01-09 19:16:19 -08:00
Alex Waygood
3351f0c0b9
Remove unused requests allowlist entry ( #6882 )
2022-01-10 00:18:23 +01:00
Joseph Young
f68047e88e
Annotate urllib3.exceptions ( #6865 )
2022-01-09 21:57:33 +01:00
Joseph Young
75a608bf49
Annotate urllib3.response ( #6871 )
2022-01-09 21:54:40 +01:00
Alex Waygood
a0b5deda40
All instance attributes on memoryview are read-only ( #6878 )
...
* All instance attributes on `memoryview` are read-only
* [pre-commit.ci] auto fixes from pre-commit.com hooks
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-09 12:07:09 -08:00
Akuli
e743ea9ca7
Improve turtle.ScrolledCanvas ( #6757 )
2022-01-09 11:24:45 -08:00
Alex Waygood
4e046163b5
Delete many redundant method redefinitions ( #6877 )
2022-01-09 11:21:03 -08:00
Nikita Sobolev
bb6a6e3421
Use Literal and __all__ in binhex ( #6845 )
2022-01-09 18:34:44 +01:00
Nikita Sobolev
34426dbc20
Change get_cache_token to return a NewType in _py_abc ( #6872 )
2022-01-09 18:33:45 +01:00
Nikita Sobolev
da3292d271
Use Literal type for BOM_* constants in codecs.pyi ( #6873 )
2022-01-09 18:31:15 +01:00
Jelle Zijlstra
49d2fa5f9d
put redis.client._ScoreCastFuncReturn back ( #6876 )
...
#6829 removed it as unused but #6790 added a usage.
2022-01-09 19:03:51 +02:00
Nikita Sobolev
afb265ce84
Improve bdb with Literal and __all__ ( #6844 )
2022-01-09 18:40:35 +02:00
Charles Smith
14c2ff6116
Minor improvements to redis stubs for scan and zset methods ( #6790 )
2022-01-09 18:33:22 +02:00
Nikita Sobolev
35c1d4f879
Remove __slots__ from builtins.object ( #6800 )
2022-01-09 18:27:24 +02:00
Nikita Sobolev
daf5b7a4af
Adds Literal and __all__ to cmd.pyi ( #6847 )
2022-01-09 18:21:02 +02:00
Joseph Young
8f7dd8c381
Fix return type of shutil.which ( #6867 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-01-09 16:29:43 +02:00
Joseph Young
e6f28c052e
Accept PathLike[bytes] in os.listdir ( #6870 )
2022-01-09 16:17:01 +02:00
Sebastian Rittau
67c5d73cdb
Further annotate sqlalchemy.engine and collections ( #6680 )
2022-01-09 15:20:17 +02:00
Joseph Young
ac623b5036
Support bytes paths in shutil.copy ( #6866 )
2022-01-09 14:03:26 +02:00
Rui Cunha
d00b3b2d12
Add socket.IPPROTO_MPTCP ( #6863 )
2022-01-08 20:57:03 +02:00
Joseph Young
ea6c562928
Accept bytes in shutil.copymode ( #6862 )
2022-01-08 20:49:51 +02:00
Sebastian Rittau
f4ce1ebaf8
Use positional-only arguments for IO ( #6851 )
2022-01-08 20:49:29 +02:00
Arie Bovenberg
267bb2485a
pkgutil.get_loader may return None ( #6861 )
2022-01-08 20:30:24 +02:00
Sam Bull
933fec014c
Pygments: make Formatter generic and improve format/highlight ( #6819 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-01-08 20:27:51 +02:00
Alex Waygood
a40d79a4e6
Use lowercase type everywhere ( #6853 )
2022-01-08 16:09:29 +01:00
Sebastian Rittau
f8501d33c7
Use types-urllib3 for requests ( #6859 )
2022-01-08 16:25:50 +02:00
Sebastian Rittau
38811a4495
Fix check consistent ( #6860 )
2022-01-08 15:35:42 +02:00
Sebastian Rittau
29563c3cc3
Add urllib3 stubs ( #6858 )
2022-01-08 14:49:06 +02:00
Nikita Sobolev
1fbc919ec8
Use Literal and __all__ in filecmp ( #6852 )
2022-01-08 13:07:33 +01:00
Nikita Sobolev
c4a68faf6c
Use Literal type in codecs ( #6857 )
2022-01-08 12:57:57 +01:00
Akuli
950cff21f6
create_baseline_stubs.py: Fix stubgen invocation ( #6856 )
2022-01-08 12:33:29 +01:00
Joseph Young
0e5a00b97a
Add a comment explaining why shutil.move doesn't allow bytes/Pathlike[bytes] args ( #6832 )
2022-01-08 11:59:02 +02:00
Nikita Sobolev
28a5e6bb7a
Stricter platform checks for constants in fcntl ( #6807 )
2022-01-07 19:40:13 +01:00
Sebastian Rittau
2ad8db51ad
Update to mypy 0.931 ( #6850 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-01-07 19:21:10 +01:00
Nikita Sobolev
5103f23de3
Fixes asyncio.events definition ( #6811 )
2022-01-07 19:25:12 +02:00
Neil Girdhar
1b3d629bc5
Make self positional-only in functools.partial and partialmethod ( #6822 )
2022-01-07 19:19:13 +02:00
Alex Waygood
9558b36a45
range and slice: start, stop, step are read-only ( #6849 )
2022-01-07 19:17:28 +02:00
Sebastian Rittau
e77a66aced
Update pyright ( #6840 )
2022-01-07 18:58:15 +02:00
Thorben Dahl
da78d7cbc3
Improve Babel dates stub ( #6730 )
2022-01-07 17:10:32 +01:00
Luca Chiodini
3b73acb06b
Pillow: Image fixes ( #6848 )
...
* Fix return type of `Image.transform()`.
* Add animation attributes to `Image`.
2022-01-07 17:08:30 +01:00