kasium
3a22bf2411
Add stubs for Flask-SQLAlchemy ( #6946 )
2022-01-20 13:10:26 -08:00
Alex Waygood
76af72831a
Use the Literal["foo", "bar"] syntax consistently ( #6984 )
2022-01-20 20:16:04 +02:00
Sebastian Rittau
fb6c9621d6
Update SQLAlchemy stubs for 1.4.30 ( #6973 )
2022-01-20 12:34:02 +02:00
Alex Waygood
aea52b35d1
Remove nearly all __str__ and __repr__ methods from typeshed ( #6968 )
2022-01-20 00:45:11 +01:00
Sebastian Rittau
5bf672ce42
Update redis stubs to 4.1.1 ( #6960 )
...
Closes : #6951
2022-01-19 07:05:15 -08:00
Jelle Zijlstra
a0d748de2f
Revert "Temporarily fix redis version to 4.1.0" ( #6957 )
...
This reverts commit 7d2de33bba .
2022-01-18 15:09:19 -08:00
Alex Waygood
90d92aa0a5
Use _typeshed.Self in protobuf/google/protobuf/message.pyi ( #6955 )
2022-01-18 12:54:09 -08:00
Alex Waygood
cd93461225
Use PEP 585 syntax in @python2/_ast, convert more TypeVars to _typeshed.Self, & # noqa a SQLAlchemy line ( #6954 )
...
* Manual fixes for `_ast` and `SQLAlchemy`
* Change more `TypeVar`s to `Self`, using script
2022-01-18 11:15:34 -08:00
Alex Waygood
8af5e0d340
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible ( #6949 )
2022-01-18 07:14:03 -08:00
Nipunn Koorapati
aa885ecd65
Flatten stubtest_allowlist for protobuf generated files ( #6944 )
...
I added stubtest testing for generated files within mypy-protobuf.
There are many ways in which the protobuf code is doing *weird*
things and we want the stubs to look a bit different. They're enumerated
in the `stubtest_allowlist.txt` of mypy-protobuf, so squashing them here
so that this one can focus on the non-generated files.
2022-01-18 06:58:48 -08:00
Sebastian Rittau
7d2de33bba
Temporarily fix redis version to 4.1.0 ( #6952 )
...
Quick fix for #6951
2022-01-18 06:53:37 -08:00
Alex Waygood
6a88d5e7ae
Use _typeshed.Self in Python 2, too ( #6932 )
2022-01-16 14:44:51 -08:00
Jelle Zijlstra
0949e9e90d
remove quoted strings ( #6933 )
2022-01-16 14:29:13 -08:00
Jelle Zijlstra
85318d1b21
Cleanup: do not quote types unnecessarily ( #6931 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-16 20:18:17 +02:00
Jelle Zijlstra
339bfbbfaa
remove "= ..." from top-level values ( #6930 )
2022-01-16 18:38:00 +02:00
Akuli
5d20635890
pygments: delete _TokenType.__init__ ( #6918 )
2022-01-14 19:13:14 -08:00
DatGuy1
7920f502e2
Add get_localzone_name to tzlocal ( #6912 )
2022-01-14 00:35:24 +01:00
Akuli
df0fe16456
requests: remove an unused allowlist entry ( #6911 )
2022-01-13 20:35:37 +01:00
Jelle Zijlstra
1a0e0a4023
urllib3: allow allowed_methods to be False ( #6909 )
2022-01-13 15:26:56 +01:00
Joseph Young
13e31aa3bf
Add stubs for aiofiles.os.path ( #6787 )
2022-01-13 12:31:19 +02:00
Sebastian Rittau
f7534891f1
Annotate command kwargs arguments ( #6721 )
2022-01-13 11:22:08 +01:00
Taj
7764a4f4d5
Fix cachetools maxsize argument types ( #6901 )
2022-01-12 20:58:39 +01:00
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
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
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
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
Charles Smith
14c2ff6116
Minor improvements to redis stubs for scan and zset methods ( #6790 )
2022-01-09 18:33:22 +02:00
Sebastian Rittau
67c5d73cdb
Further annotate sqlalchemy.engine and collections ( #6680 )
2022-01-09 15:20:17 +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
29563c3cc3
Add urllib3 stubs ( #6858 )
2022-01-08 14:49:06 +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
Ambrose Chua
032e6ee90c
requests: Add JSONDecodeError ( #6838 )
2022-01-06 19:34:22 -08:00
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