Alex Waygood
b093c90a94
Use TypeAlias for type aliases where possible, part II ( #7667 )
2022-04-20 20:02:47 +01:00
Alex Waygood
653f2c6ba4
Third-party stubs: import from collections.abc where possible ( #7637 )
2022-04-16 14:52:57 +01:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Alex Waygood
ec27c00ca2
Third-party stubs: Improve several __exit__ methods ( #7575 )
2022-04-01 08:03:12 -07:00
Alex Waygood
3ab250eec8
Use PEP 604 syntax wherever possible ( #7493 )
2022-03-16 16:01:33 +01:00
Sebastian Rittau
ffeac7297f
Re-export RedisCluster from redis ( #7371 )
2022-02-23 16:39:09 +01:00
Sebastian Rittau
e3742686b1
Update to redis 4.1.4 ( #7247 )
...
Closes : #7245
2022-02-17 01:33:33 -08:00
Alex Waygood
b4e97a1909
Improve __enter__ & constructor methods ( #7114 )
2022-02-02 22:14:59 +01:00
Rajiv Bakulesh Shah
beac964588
Redis: Annotate .lolwut() ( #7104 )
2022-02-02 11:18:11 +01:00
Rajiv Bakulesh Shah
064317a72e
Redis: Annotate .pttl(), .dump(), and .getdel() ( #7091 )
2022-01-31 08:30:46 +01:00
Shantanu
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
Sebastian Rittau
4390b88986
Update redis stubs for 4.1.2 ( #7064 )
2022-01-28 11:30:23 +02: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
Sebastian Rittau
7d2de33bba
Temporarily fix redis version to 4.1.0 ( #6952 )
...
Quick fix for #6951
2022-01-18 06:53:37 -08:00
Sebastian Rittau
f7534891f1
Annotate command kwargs arguments ( #6721 )
2022-01-13 11:22:08 +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
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
Alex Waygood
a40d79a4e6
Use lowercase type everywhere ( #6853 )
2022-01-08 16:09:29 +01:00
Alex Waygood
2268955701
Remove several unused TypeVars ( #6829 )
2022-01-05 17:58:03 +02:00
Alex Waygood
505ea72641
Never explicitly inherit from object in Python 3-only stubs ( #6777 )
2022-01-02 07:24:48 +01:00
Sebastian Rittau
22bf9e8a78
redis: Restore type annotations of ping() and save() ( #6720 )
2021-12-28 13:08:05 +02:00
Alex Waygood
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Sebastian Rittau
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 Li
5fe2a26908
redis: Add stubs for lmove and blmove ( #6586 )
2021-12-25 01:50:53 +02: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
Stephen Rosen
df0a724c0f
Always import Protocol from typing in stubs ( #6617 )
2021-12-17 13:12:22 +01:00
Akuli
4631b74919
Fix various issues in redis.client ( #6464 )
2021-12-01 17:09:48 +01:00
Akuli
deaa764915
redis: fix several stubtest warnings ( #6378 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-12-01 12:00:07 +02:00
Akuli
a5bc1e037f
Add mypy error codes to '# type: ignore' comments ( #6379 )
2021-11-26 07:07:56 +01:00
Sebastian Rittau
ab026bfecb
Update redis stubs to version 4 ( #6368 )
2021-11-25 11:05:32 +02:00
Alex Waygood
c685c2d6c6
Reduce use of deprecated typing aliases ( #6358 )
2021-11-23 10:56:43 +01:00
Akuli
0cd1135219
Revert "do not use mypy-specific syntax in '# type: ignore' comments" ( #6338 )
2021-11-18 20:13:07 +02:00
Stéphane Brunner
9c9853967d
Redis Sentinel master_for, slave_for returns a Redis client ( #6269 )
2021-11-12 12:23:12 +01:00
Daniel Huckins
cf78194c76
Annotate Client.decr() and decrby() ( #6179 )
2021-10-16 18:46:52 +02:00
Nikita Sobolev
0e24e1fe66
Add redis/sentinel.pyi ( #6174 )
2021-10-15 12:04:56 +02:00
Akuli
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07:00
Sebastian Rittau
9f86972350
Add star to all non-0.1 versions ( #6146 )
2021-10-11 13:41:19 -07:00
Nikita Sobolev
0142ea8b52
Add Redis.memory_purge() ( #6138 )
2021-10-09 17:02:28 +02:00
Nikita Sobolev
90f6727516
Add memory_stats() to Redis ( #6137 )
2021-10-09 11:57:59 +02:00
Steve Dignam
4ef07810c4
redis: include local property on Lock class ( #6083 )
...
The Lock class as a property local that has a token property that sometimes
needs be accessed / set.
```python
lock = redis.lock(key)
lock.local.token = token
lock.extend(10)
```
Technically the type of `local` is `SimpleNamespace | threading.local`
but I think this setup is a bit stricter but satisfies the API.
2021-09-28 21:16:23 -07:00
Jungkook Park
18d4868fce
Fix type of blocking_timeout argument to redis.lock.Lock ( #6019 )
2021-09-10 04:27:05 +02:00
Akuli
8d5452e873
do not use mypy-specific syntax in '# type: ignore' comments ( #5953 )
2021-08-29 03:58:34 -07:00
Akuli
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
nzig
679ddde66e
Add replace parameter for redis restore ( #5668 )
2021-06-21 09:50:06 +02:00
nzig
962a6fd387
Add replace parameter for redis restore ( #5662 )
...
Co-authored-by: Nadav Zingerman <nadav@medigate.io >
2021-06-20 14:01:03 +02:00
Shantanu
7244ea1f71
Test third party stubs with stubtest ( #5615 )
2021-06-13 00:17:40 +02:00
Sebastian Rittau
6a6d5d8fd2
Fix zincrby argument order ( #5608 )
2021-06-09 21:16:34 +03:00