@@ -101,7 +101,7 @@ def acl_genpass(self, bits: Union[int, None] = None, **kwargs) -> ResponseT:
101
101
raise ValueError
102
102
except ValueError :
103
103
raise DataError (
104
- "genpass optionally accepts a bits argument, " " between 0 and 4096."
104
+ "genpass optionally accepts a bits argument, between 0 and 4096."
105
105
)
106
106
return self .execute_command ("ACL GENPASS" , * pieces , ** kwargs )
107
107
@@ -142,7 +142,7 @@ def acl_log(self, count: Union[int, None] = None, **kwargs) -> ResponseT:
142
142
args = []
143
143
if count is not None :
144
144
if not isinstance (count , int ):
145
- raise DataError ("ACL LOG count must be an " " integer" )
145
+ raise DataError ("ACL LOG count must be an integer" )
146
146
args .append (count )
147
147
148
148
return self .execute_command ("ACL LOG" , * args , ** kwargs )
@@ -276,7 +276,7 @@ def acl_setuser(
276
276
277
277
if (passwords or hashed_passwords ) and nopass :
278
278
raise DataError (
279
- "Cannot set 'nopass' and supply " " 'passwords' or 'hashed_passwords'"
279
+ "Cannot set 'nopass' and supply 'passwords' or 'hashed_passwords'"
280
280
)
281
281
282
282
if passwords :
@@ -1613,7 +1613,7 @@ def bitpos(
1613
1613
if start is not None and end is not None :
1614
1614
params .append (end )
1615
1615
elif start is None and end is not None :
1616
- raise DataError ("start argument is not set, " " when end is specified" )
1616
+ raise DataError ("start argument is not set, when end is specified" )
1617
1617
1618
1618
if mode is not None :
1619
1619
params .append (mode )
@@ -3457,9 +3457,7 @@ def xadd(
3457
3457
"""
3458
3458
pieces : list [EncodableT ] = []
3459
3459
if maxlen is not None and minid is not None :
3460
- raise DataError (
3461
- "Only one of ```maxlen``` or ```minid``` " "may be specified"
3462
- )
3460
+ raise DataError ("Only one of ```maxlen``` or ```minid``` may be specified" )
3463
3461
3464
3462
if maxlen is not None :
3465
3463
if not isinstance (maxlen , int ) or maxlen < 1 :
@@ -3515,7 +3513,7 @@ def xautoclaim(
3515
3513
try :
3516
3514
if int (min_idle_time ) < 0 :
3517
3515
raise DataError (
3518
- "XAUTOCLAIM min_idle_time must be a non" "negative integer"
3516
+ "XAUTOCLAIM min_idle_time must be a nonnegative integer"
3519
3517
)
3520
3518
except TypeError :
3521
3519
pass
@@ -3573,7 +3571,7 @@ def xclaim(
3573
3571
For more information see https://redis.io/commands/xclaim
3574
3572
"""
3575
3573
if not isinstance (min_idle_time , int ) or min_idle_time < 0 :
3576
- raise DataError ("XCLAIM min_idle_time must be a non negative " " integer" )
3574
+ raise DataError ("XCLAIM min_idle_time must be a non negative integer" )
3577
3575
if not isinstance (message_ids , (list , tuple )) or not message_ids :
3578
3576
raise DataError (
3579
3577
"XCLAIM message_ids must be a non empty list or "
@@ -3906,7 +3904,7 @@ def xreadgroup(
3906
3904
pieces .append (str (count ))
3907
3905
if block is not None :
3908
3906
if not isinstance (block , int ) or block < 0 :
3909
- raise DataError ("XREADGROUP block must be a non-negative " " integer" )
3907
+ raise DataError ("XREADGROUP block must be a non-negative integer" )
3910
3908
pieces .append (b"BLOCK" )
3911
3909
pieces .append (str (block ))
3912
3910
if noack :
@@ -3968,7 +3966,7 @@ def xtrim(
3968
3966
"""
3969
3967
pieces : list [EncodableT ] = []
3970
3968
if maxlen is not None and minid is not None :
3971
- raise DataError ("Only one of ``maxlen`` or ``minid`` " " may be specified" )
3969
+ raise DataError ("Only one of ``maxlen`` or ``minid`` may be specified" )
3972
3970
3973
3971
if maxlen is None and minid is None :
3974
3972
raise DataError ("One of ``maxlen`` or ``minid`` must be specified" )
@@ -4342,14 +4340,12 @@ def _zrange(
4342
4340
num : Union [int , None ] = None ,
4343
4341
) -> ResponseT :
4344
4342
if byscore and bylex :
4345
- raise DataError (
4346
- "``byscore`` and ``bylex`` can not be " "specified together."
4347
- )
4343
+ raise DataError ("``byscore`` and ``bylex`` can not be specified together." )
4348
4344
if (offset is not None and num is None ) or (num is not None and offset is None ):
4349
4345
raise DataError ("``offset`` and ``num`` must both be specified." )
4350
4346
if bylex and withscores :
4351
4347
raise DataError (
4352
- "``withscores`` not supported in combination " " with ``bylex``."
4348
+ "``withscores`` not supported in combination with ``bylex``."
4353
4349
)
4354
4350
pieces = [command ]
4355
4351
if dest :
@@ -5301,7 +5297,7 @@ def geoadd(
5301
5297
if nx and xx :
5302
5298
raise DataError ("GEOADD allows either 'nx' or 'xx', not both" )
5303
5299
if len (values ) % 3 != 0 :
5304
- raise DataError ("GEOADD requires places with lon, lat and name" " values" )
5300
+ raise DataError ("GEOADD requires places with lon, lat and name values" )
5305
5301
pieces = [name ]
5306
5302
if nx :
5307
5303
pieces .append ("NX" )
@@ -5487,7 +5483,7 @@ def _georadiusgeneric(
5487
5483
raise DataError ("GEORADIUS invalid sort" )
5488
5484
5489
5485
if kwargs ["store" ] and kwargs ["store_dist" ]:
5490
- raise DataError ("GEORADIUS store and store_dist cant be set" " together" )
5486
+ raise DataError ("GEORADIUS store and store_dist cant be set together" )
5491
5487
5492
5488
if kwargs ["store" ]:
5493
5489
pieces .extend ([b"STORE" , kwargs ["store" ]])
@@ -5624,13 +5620,11 @@ def _geosearchgeneric(
5624
5620
# FROMMEMBER or FROMLONLAT
5625
5621
if kwargs ["member" ] is None :
5626
5622
if kwargs ["longitude" ] is None or kwargs ["latitude" ] is None :
5627
- raise DataError (
5628
- "GEOSEARCH must have member or" " longitude and latitude"
5629
- )
5623
+ raise DataError ("GEOSEARCH must have member or longitude and latitude" )
5630
5624
if kwargs ["member" ]:
5631
5625
if kwargs ["longitude" ] or kwargs ["latitude" ]:
5632
5626
raise DataError (
5633
- "GEOSEARCH member and longitude or latitude" " cant be set together"
5627
+ "GEOSEARCH member and longitude or latitude cant be set together"
5634
5628
)
5635
5629
pieces .extend ([b"FROMMEMBER" , kwargs ["member" ]])
5636
5630
if kwargs ["longitude" ] is not None and kwargs ["latitude" ] is not None :
@@ -5639,15 +5633,15 @@ def _geosearchgeneric(
5639
5633
# BYRADIUS or BYBOX
5640
5634
if kwargs ["radius" ] is None :
5641
5635
if kwargs ["width" ] is None or kwargs ["height" ] is None :
5642
- raise DataError ("GEOSEARCH must have radius or" " width and height" )
5636
+ raise DataError ("GEOSEARCH must have radius or width and height" )
5643
5637
if kwargs ["unit" ] is None :
5644
5638
raise DataError ("GEOSEARCH must have unit" )
5645
5639
if kwargs ["unit" ].lower () not in ("m" , "km" , "mi" , "ft" ):
5646
5640
raise DataError ("GEOSEARCH invalid unit" )
5647
5641
if kwargs ["radius" ]:
5648
5642
if kwargs ["width" ] or kwargs ["height" ]:
5649
5643
raise DataError (
5650
- "GEOSEARCH radius and width or height" " cant be set together"
5644
+ "GEOSEARCH radius and width or height cant be set together"
5651
5645
)
5652
5646
pieces .extend ([b"BYRADIUS" , kwargs ["radius" ], kwargs ["unit" ]])
5653
5647
if kwargs ["width" ] and kwargs ["height" ]:
@@ -5668,7 +5662,7 @@ def _geosearchgeneric(
5668
5662
if kwargs ["any" ]:
5669
5663
pieces .append (b"ANY" )
5670
5664
elif kwargs ["any" ]:
5671
- raise DataError ("GEOSEARCH ``any`` can't be provided " " without count" )
5665
+ raise DataError ("GEOSEARCH ``any`` can't be provided without count" )
5672
5666
5673
5667
# other properties
5674
5668
for arg_name , byte_repr in (
0 commit comments