Juan Amari
ce8c82a27c
[redis] Initial stubs for redis.asyncio.cluster ( #9468 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2023-02-03 13:27:39 +00:00
Avasam
f1aede7162
Manual changes of Any union to Incomplete in stubs folder ( #9566 )
...
- ClassVar[Any | None]
- Missed previous changes due to alias
- Manual review of leftover Any unions (`| Any` and `Any |`)
2023-02-02 06:48:41 -08:00
wookie184
0024dc4f33
Add some missing Self return annotations in redis ( #9601 )
2023-01-28 16:47:29 +00:00
Avasam
6ac24ed923
Replace Any with Incomplete in many places ( #9565 )
2023-01-18 19:12:46 +00:00
Alex Waygood
4fea314594
Replace Any with Incomplete in many places ( #9558 )
2023-01-18 08:48:16 +00:00
Avasam
5b0488928d
Complete and validate redis.ocsp (use requests, cryptography and pyopenssl) ( #9528 )
2023-01-17 15:47:26 +00:00
Juan Amari
605378de6e
Bump redis to 4.4.0 ( #9458 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2023-01-05 15:25:11 +00:00
Avasam
23ac9bff19
Check for unused pyright: ignore and differentiate from mypy ignores ( #9397 )
2022-12-28 10:44:29 +00:00
Nikita Sobolev
a29624ee42
[redis] update to 4.3.5 ( #9284 )
2022-11-27 22:23:51 -08:00
Alex Waygood
a3de404e1d
Pin redis to 4.3.4 in CI ( #9247 )
...
We're about to get a daily test failure with 63 stubtest errors (see the Ubuntu stubtest failure in #9187 ) due to the release of redis-py 4.3.5, and I'd rather that didn't happen.
2022-11-22 12:46:42 +01:00
Nikita Sobolev
c0e9038f0d
Fix and allow classes with missing metaclasses ( #9136 )
2022-11-08 18:13:59 +00:00
Peter Schutt
25810e1b11
Fixes redis.asyncio.client: AsyncIterator cannot be async def in stubs. ( #8961 )
...
Without the `yield` statement in the method body, these are interpreted by mypy as coroutines that return an `AsyncIterator`.
Closes #8960
2022-10-21 09:44:51 -07:00
Nikita Sobolev
f07e68d7a4
[redis] Type redis.commands.parser ( #8870 )
2022-10-13 20:52:13 -07:00
Nikita Sobolev
27e9fde673
Add redis.asyncio.parser ( #8830 )
...
Source: https://github.com/redis/redis-py/blob/master/redis/asyncio/parser.py
2022-10-03 10:49:55 -07:00
Nikita Sobolev
721ad3d785
[redis] Improve fail parameter of Retry.call_with_retry ( #8827 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-10-03 09:48:37 -07:00
Nikita Sobolev
bee4ee3199
[redis] Improve redis.asyncio.lock types ( #8826 )
2022-10-03 09:31:10 -07:00
Alex Waygood
48e76e8a56
Bump mypy to 0.981 ( #8796 )
2022-09-26 17:14:33 -07:00
Nikita Sobolev
4a4acdb30a
redis: Improve kwargs typing in sentinel (#8661 )
2022-09-02 13:02:12 +01:00
Nikita Sobolev
d3cded7fc6
redis: Add _Encodable type alias ( #8638 )
2022-08-29 13:38:22 +02:00
Nikita Sobolev
481027e194
redis: Improve ClusterPubSub types ( #8627 )
2022-08-27 16:13:46 +01:00
Nikita Sobolev
57495ddaf4
Update redis/cluster.pyi ( #8593 )
2022-08-22 16:09:01 +02:00
Nikita Sobolev
383eca299b
redis: Do not override AbstractRedis.RESPONSE_CALLBACKS (#8592 )
2022-08-22 14:51:51 +01:00
Nikita Sobolev
e17ca47782
Further improve redis.cluster ( #8578 )
2022-08-21 17:00:53 +01:00
Nikita Sobolev
c6d34cc24d
Improve redis.cluster types ( #8573 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-20 18:46:09 +01:00
Deon Pearson
d0d24b7301
redis: correct set command parameter types (#8536 )
2022-08-20 16:21:39 +01:00
Alex Waygood
c87ccce37e
Remove a few unused TypedDicts ( #8522 )
2022-08-10 18:56:14 +01:00
Yasir Ekinci
76643099a9
redis.backoff: fix cap and base type (float) ( #8454 )
2022-08-01 09:07:28 +02:00
Nikita Sobolev
275fc28733
Improve redis.cluster annotations ( #8379 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-07-30 12:50:39 +01:00
Nikita Sobolev
5598b49851
Improve redis.crc types ( #8375 )
2022-07-23 16:57:42 +01:00
Nikita Sobolev
175e81be7f
Improve redis.utils types ( #8362 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-07-22 08:57:15 +01:00
Nikita Sobolev
6ae2da64e6
Improve redis.retry types ( #8354 )
2022-07-21 17:51:13 +02:00
Nikita Sobolev
6fa7846edd
Annotate some redis.backoff items ( #8352 )
2022-07-21 16:52:15 +02:00
Nikita Sobolev
f178ae0d83
Improve types of redis.connection module ( #8342 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-07-20 13:48:13 +01:00
Ben Avrahami
25e74740ae
Type async Pipeline commands explicitly ( #8325 )
2022-07-19 15:15:09 +02:00
Nikita Sobolev
9cda16f5df
Improve redis.sentinel types ( #8331 )
2022-07-19 13:04:09 +02:00
Alex Waygood
6348a58b8b
Import Match and Pattern from re, not typing ( #8277 )
2022-07-12 15:32:48 +02:00
Sebastian Rittau
3c959d099b
Update redis stubs to 4.3.4 ( #8199 )
...
Fixes #8196
2022-06-28 16:38:15 +01:00
Nikita Sobolev
780269823b
Improve redis/asyncio/client.pyi ( #8141 )
2022-06-23 11:52:56 +01:00
Alex Waygood
8826d3a36f
Rename some confusingly named type aliases ( #8129 )
2022-06-21 20:51:05 +01:00
Sebastian Rittau
6a64e69054
Update redis stubs to 4.3 ( #8108 )
2022-06-20 12:09:38 -07:00
Shantanu
5f1f6dc310
redis: remove duplicate allowlist entries ( #8097 )
...
Co-authored-by: hauntsaninja <>
2022-06-18 08:42:07 +01:00
Alex Waygood
4967c8bc12
redis: fix more unconstrained TypeVars (#8084 )
2022-06-15 10:14:13 -07:00
Jelle Zijlstra
466f9c2ad7
redis: Fix unconstrained TypeVars in a few redis commands ( #7942 )
...
Part of #7928
2022-05-26 15:53:56 +01:00
Alex Waygood
76a4bd796b
Simplify and correct many numeric unions ( #7906 )
...
Unblocks PyCQA/flake8-pyi#222
2022-05-21 15:25:00 +01:00
Mehdi ABAAKOUK
f6c1383cae
reds: commands from asyncio module must be async ( #7820 )
...
redis-py has introduced an asyncio module since 4.2 and almost all
commands should be async if the redis.asyncio.Redis is used instead of
redis.Redis.
This changes adds the types for all core commands.
Related to #7597
2022-05-18 19:50:01 -07:00
Sam Bull
686cd6ef63
Add __version__/VERSION to redis ( #7838 )
2022-05-15 11:55:12 +01:00
Alex Waygood
5c6178a821
Import generics from standard modules in all third-party stubs ( #7791 )
2022-05-07 10:35:50 +02:00
Sebastian Rittau
460537c7f6
Add missing redis modules and classes ( #7676 )
...
This adds asyncio support and support for redis.typing.
2022-05-04 11:29:13 +02:00
Sebastian Rittau
3a98e8be6b
Update redis stubs to 4.2 ( #7675 )
...
Closes #7597
2022-04-23 22:15:10 -07:00
Alex Waygood
b093c90a94
Use TypeAlias for type aliases where possible, part II ( #7667 )
2022-04-20 20:02:47 +01:00