@@ -101,7 +101,7 @@ def acl_genpass(self, bits: Union[int, None] = None, **kwargs) -> ResponseT:
101101 raise ValueError
102102 except ValueError :
103103 raise DataError (
104- "genpass optionally accepts a bits argument, " " between 0 and 4096."
104+ "genpass optionally accepts a bits argument, between 0 and 4096."
105105 )
106106 return self .execute_command ("ACL GENPASS" , * pieces , ** kwargs )
107107
@@ -142,7 +142,7 @@ def acl_log(self, count: Union[int, None] = None, **kwargs) -> ResponseT:
142142 args = []
143143 if count is not None :
144144 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" )
146146 args .append (count )
147147
148148 return self .execute_command ("ACL LOG" , * args , ** kwargs )
@@ -276,7 +276,7 @@ def acl_setuser(
276276
277277 if (passwords or hashed_passwords ) and nopass :
278278 raise DataError (
279- "Cannot set 'nopass' and supply " " 'passwords' or 'hashed_passwords'"
279+ "Cannot set 'nopass' and supply 'passwords' or 'hashed_passwords'"
280280 )
281281
282282 if passwords :
@@ -1561,7 +1561,7 @@ def bitpos(
15611561 if start is not None and end is not None :
15621562 params .append (end )
15631563 elif start is None and end is not None :
1564- raise DataError ("start argument is not set, " " when end is specified" )
1564+ raise DataError ("start argument is not set, when end is specified" )
15651565
15661566 if mode is not None :
15671567 params .append (mode )
@@ -3405,9 +3405,7 @@ def xadd(
34053405 """
34063406 pieces : list [EncodableT ] = []
34073407 if maxlen is not None and minid is not None :
3408- raise DataError (
3409- "Only one of ```maxlen``` or ```minid``` " "may be specified"
3410- )
3408+ raise DataError ("Only one of ```maxlen``` or ```minid``` may be specified" )
34113409
34123410 if maxlen is not None :
34133411 if not isinstance (maxlen , int ) or maxlen < 1 :
@@ -3463,7 +3461,7 @@ def xautoclaim(
34633461 try :
34643462 if int (min_idle_time ) < 0 :
34653463 raise DataError (
3466- "XAUTOCLAIM min_idle_time must be a non" "negative integer"
3464+ "XAUTOCLAIM min_idle_time must be a nonnegative integer"
34673465 )
34683466 except TypeError :
34693467 pass
@@ -3521,7 +3519,7 @@ def xclaim(
35213519 For more information see https://redis.io/commands/xclaim
35223520 """
35233521 if not isinstance (min_idle_time , int ) or min_idle_time < 0 :
3524- raise DataError ("XCLAIM min_idle_time must be a non negative " " integer" )
3522+ raise DataError ("XCLAIM min_idle_time must be a non negative integer" )
35253523 if not isinstance (message_ids , (list , tuple )) or not message_ids :
35263524 raise DataError (
35273525 "XCLAIM message_ids must be a non empty list or "
@@ -3854,7 +3852,7 @@ def xreadgroup(
38543852 pieces .append (str (count ))
38553853 if block is not None :
38563854 if not isinstance (block , int ) or block < 0 :
3857- raise DataError ("XREADGROUP block must be a non-negative " " integer" )
3855+ raise DataError ("XREADGROUP block must be a non-negative integer" )
38583856 pieces .append (b"BLOCK" )
38593857 pieces .append (str (block ))
38603858 if noack :
@@ -3916,7 +3914,7 @@ def xtrim(
39163914 """
39173915 pieces : list [EncodableT ] = []
39183916 if maxlen is not None and minid is not None :
3919- raise DataError ("Only one of ``maxlen`` or ``minid`` " " may be specified" )
3917+ raise DataError ("Only one of ``maxlen`` or ``minid`` may be specified" )
39203918
39213919 if maxlen is None and minid is None :
39223920 raise DataError ("One of ``maxlen`` or ``minid`` must be specified" )
@@ -4290,14 +4288,12 @@ def _zrange(
42904288 num : Union [int , None ] = None ,
42914289 ) -> ResponseT :
42924290 if byscore and bylex :
4293- raise DataError (
4294- "``byscore`` and ``bylex`` can not be " "specified together."
4295- )
4291+ raise DataError ("``byscore`` and ``bylex`` can not be specified together." )
42964292 if (offset is not None and num is None ) or (num is not None and offset is None ):
42974293 raise DataError ("``offset`` and ``num`` must both be specified." )
42984294 if bylex and withscores :
42994295 raise DataError (
4300- "``withscores`` not supported in combination " " with ``bylex``."
4296+ "``withscores`` not supported in combination with ``bylex``."
43014297 )
43024298 pieces = [command ]
43034299 if dest :
@@ -5249,7 +5245,7 @@ def geoadd(
52495245 if nx and xx :
52505246 raise DataError ("GEOADD allows either 'nx' or 'xx', not both" )
52515247 if len (values ) % 3 != 0 :
5252- raise DataError ("GEOADD requires places with lon, lat and name" " values" )
5248+ raise DataError ("GEOADD requires places with lon, lat and name values" )
52535249 pieces = [name ]
52545250 if nx :
52555251 pieces .append ("NX" )
@@ -5435,7 +5431,7 @@ def _georadiusgeneric(
54355431 raise DataError ("GEORADIUS invalid sort" )
54365432
54375433 if kwargs ["store" ] and kwargs ["store_dist" ]:
5438- raise DataError ("GEORADIUS store and store_dist cant be set" " together" )
5434+ raise DataError ("GEORADIUS store and store_dist cant be set together" )
54395435
54405436 if kwargs ["store" ]:
54415437 pieces .extend ([b"STORE" , kwargs ["store" ]])
@@ -5572,13 +5568,11 @@ def _geosearchgeneric(
55725568 # FROMMEMBER or FROMLONLAT
55735569 if kwargs ["member" ] is None :
55745570 if kwargs ["longitude" ] is None or kwargs ["latitude" ] is None :
5575- raise DataError (
5576- "GEOSEARCH must have member or" " longitude and latitude"
5577- )
5571+ raise DataError ("GEOSEARCH must have member or longitude and latitude" )
55785572 if kwargs ["member" ]:
55795573 if kwargs ["longitude" ] or kwargs ["latitude" ]:
55805574 raise DataError (
5581- "GEOSEARCH member and longitude or latitude" " cant be set together"
5575+ "GEOSEARCH member and longitude or latitude cant be set together"
55825576 )
55835577 pieces .extend ([b"FROMMEMBER" , kwargs ["member" ]])
55845578 if kwargs ["longitude" ] is not None and kwargs ["latitude" ] is not None :
@@ -5587,15 +5581,15 @@ def _geosearchgeneric(
55875581 # BYRADIUS or BYBOX
55885582 if kwargs ["radius" ] is None :
55895583 if kwargs ["width" ] is None or kwargs ["height" ] is None :
5590- raise DataError ("GEOSEARCH must have radius or" " width and height" )
5584+ raise DataError ("GEOSEARCH must have radius or width and height" )
55915585 if kwargs ["unit" ] is None :
55925586 raise DataError ("GEOSEARCH must have unit" )
55935587 if kwargs ["unit" ].lower () not in ("m" , "km" , "mi" , "ft" ):
55945588 raise DataError ("GEOSEARCH invalid unit" )
55955589 if kwargs ["radius" ]:
55965590 if kwargs ["width" ] or kwargs ["height" ]:
55975591 raise DataError (
5598- "GEOSEARCH radius and width or height" " cant be set together"
5592+ "GEOSEARCH radius and width or height cant be set together"
55995593 )
56005594 pieces .extend ([b"BYRADIUS" , kwargs ["radius" ], kwargs ["unit" ]])
56015595 if kwargs ["width" ] and kwargs ["height" ]:
@@ -5616,7 +5610,7 @@ def _geosearchgeneric(
56165610 if kwargs ["any" ]:
56175611 pieces .append (b"ANY" )
56185612 elif kwargs ["any" ]:
5619- raise DataError ("GEOSEARCH ``any`` can't be provided " " without count" )
5613+ raise DataError ("GEOSEARCH ``any`` can't be provided without count" )
56205614
56215615 # other properties
56225616 for arg_name , byte_repr in (
0 commit comments