Commit Graph
94 Commits
Author SHA1 Message Date
Alex WaygoodandGitHub c87ccce37e Remove a few unused TypedDicts (#8522) 2022-08-10 18:56:14 +01:00
Yasir EkinciandGitHub 76643099a9 redis.backoff: fix cap and base type (float) (#8454) 2022-08-01 09:07:28 +02:00
Nikita SobolevGitHubpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>Alex Waygood
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 SobolevandGitHub 5598b49851 Improve redis.crc types (#8375) 2022-07-23 16:57:42 +01:00
Nikita SobolevGitHubpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>Alex Waygood
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 SobolevandGitHub 6ae2da64e6 Improve redis.retry types (#8354) 2022-07-21 17:51:13 +02:00
Nikita SobolevandGitHub 6fa7846edd Annotate some redis.backoff items (#8352) 2022-07-21 16:52:15 +02:00
Nikita SobolevGitHubpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>Alex Waygood
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 AvrahamiandGitHub 25e74740ae Type async Pipeline commands explicitly (#8325) 2022-07-19 15:15:09 +02:00
Nikita SobolevandGitHub 9cda16f5df Improve redis.sentinel types (#8331) 2022-07-19 13:04:09 +02:00
Alex WaygoodandGitHub 6348a58b8b Import Match and Pattern from re, not typing (#8277) 2022-07-12 15:32:48 +02:00
Sebastian RittauandGitHub 3c959d099b Update redis stubs to 4.3.4 (#8199)
Fixes #8196
2022-06-28 16:38:15 +01:00
Nikita SobolevandGitHub 780269823b Improve redis/asyncio/client.pyi (#8141) 2022-06-23 11:52:56 +01:00
Alex WaygoodandGitHub 8826d3a36f Rename some confusingly named type aliases (#8129) 2022-06-21 20:51:05 +01:00
Sebastian RittauandGitHub 6a64e69054 Update redis stubs to 4.3 (#8108) 2022-06-20 12:09:38 -07:00
ShantanuGitHubhauntsaninja <>
5f1f6dc310 redis: remove duplicate allowlist entries (#8097)
Co-authored-by: hauntsaninja <>
2022-06-18 08:42:07 +01:00
Alex WaygoodandGitHub 4967c8bc12 redis: fix more unconstrained TypeVars (#8084) 2022-06-15 10:14:13 -07:00
Jelle ZijlstraandGitHub 466f9c2ad7 redis: Fix unconstrained TypeVars in a few redis commands (#7942)
Part of #7928
2022-05-26 15:53:56 +01:00
Alex WaygoodandGitHub 76a4bd796b Simplify and correct many numeric unions (#7906)
Unblocks PyCQA/flake8-pyi#222
2022-05-21 15:25:00 +01:00
Mehdi ABAAKOUKandGitHub 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 BullandGitHub 686cd6ef63 Add __version__/VERSION to redis (#7838) 2022-05-15 11:55:12 +01:00
Alex WaygoodandGitHub 5c6178a821 Import generics from standard modules in all third-party stubs (#7791) 2022-05-07 10:35:50 +02:00
Sebastian RittauandGitHub 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 RittauandGitHub 3a98e8be6b Update redis stubs to 4.2 (#7675)
Closes #7597
2022-04-23 22:15:10 -07:00
Alex WaygoodandGitHub b093c90a94 Use TypeAlias for type aliases where possible, part II (#7667) 2022-04-20 20:02:47 +01:00
Alex WaygoodandGitHub 653f2c6ba4 Third-party stubs: import from collections.abc where possible (#7637) 2022-04-16 14:52:57 +01:00
Alex WaygoodandGitHub 740193a8fc Use TypeAlias where possible for type aliases (#7630) 2022-04-15 18:01:00 -07:00
Alex WaygoodandGitHub ec27c00ca2 Third-party stubs: Improve several __exit__ methods (#7575) 2022-04-01 08:03:12 -07:00
Alex WaygoodandGitHub 3ab250eec8 Use PEP 604 syntax wherever possible (#7493) 2022-03-16 16:01:33 +01:00
Sebastian RittauandGitHub ffeac7297f Re-export RedisCluster from redis (#7371) 2022-02-23 16:39:09 +01:00
Sebastian RittauandGitHub e3742686b1 Update to redis 4.1.4 (#7247)
Closes: #7245
2022-02-17 01:33:33 -08:00
Alex WaygoodandGitHub b4e97a1909 Improve __enter__ & constructor methods (#7114) 2022-02-02 22:14:59 +01:00
Rajiv Bakulesh ShahandGitHub beac964588 Redis: Annotate .lolwut() (#7104) 2022-02-02 11:18:11 +01:00
Rajiv Bakulesh ShahandGitHub 064317a72e Redis: Annotate .pttl(), .dump(), and .getdel() (#7091) 2022-01-31 08:30:46 +01:00
ShantanuandGitHub b88a6f19cd Upgrade black version (#7089) 2022-01-30 16:27:06 -08:00
Sebastian RittauandGitHub 4390b88986 Update redis stubs for 4.1.2 (#7064) 2022-01-28 11:30:23 +02:00
Sebastian RittauandGitHub 5bf672ce42 Update redis stubs to 4.1.1 (#6960)
Closes: #6951
2022-01-19 07:05:15 -08:00
Jelle ZijlstraandGitHub a0d748de2f Revert "Temporarily fix redis version to 4.1.0" (#6957)
This reverts commit 7d2de33bba.
2022-01-18 15:09:19 -08:00
Sebastian RittauandGitHub 7d2de33bba Temporarily fix redis version to 4.1.0 (#6952)
Quick fix for #6951
2022-01-18 06:53:37 -08:00
Sebastian RittauandGitHub f7534891f1 Annotate command kwargs arguments (#6721) 2022-01-13 11:22:08 +01:00
Alex WaygoodandGitHub 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: https://github.com/tox-dev/py-filelock/blob/79ec7b2826e33b982fe83b057f359448b9d966ba/src/filelock/_api.py#L207

* Improve `opentracing/scope` annotation

Source code here: https://github.com/opentracing/opentracing-python/blob/3e1d357a348269ef54d67f761302fab93dbfc0f7/opentracing/scope.py#L71

* Improve `redis/client` stub

Source code here: https://github.com/redis/redis-py/blob/15f315a496c3267c8cbcc6d6d9c6005ea4d4a4d5/redis/client.py#L1217

* Improve `redis/lock` annotation

Source code here: https://github.com/redis/redis-py/blob/15f315a496c3267c8cbcc6d6d9c6005ea4d4a4d5/redis/lock.py#L155

* Improve `requests/models` annotation

Source code here: https://github.com/psf/requests/blob/d718e753834b84018014a23d663369ac27d1ab9c/requests/models.py#L653
2022-01-09 19:16:19 -08:00
Jelle ZijlstraandGitHub 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 SmithandGitHub 14c2ff6116 Minor improvements to redis stubs for scan and zset methods (#6790) 2022-01-09 18:33:22 +02:00
Alex WaygoodandGitHub a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Alex WaygoodandGitHub 2268955701 Remove several unused TypeVars (#6829) 2022-01-05 17:58:03 +02:00
Alex WaygoodandGitHub 505ea72641 Never explicitly inherit from object in Python 3-only stubs (#6777) 2022-01-02 07:24:48 +01:00
Sebastian RittauandGitHub 22bf9e8a78 redis: Restore type annotations of ping() and save() (#6720) 2021-12-28 13:08:05 +02:00
Alex WaygoodandGitHub 8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian RittauGitHubAkulipre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
e6cb341d94 Update redis stubs to 4.1 (#6711)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-27 21:34:34 +02:00
Rich LiandGitHub 5fe2a26908 redis: Add stubs for lmove and blmove (#6586) 2021-12-25 01:50:53 +02:00