@@ -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 :
@@ -1613,7 +1613,7 @@ def bitpos(
16131613 if  start  is  not None  and  end  is  not None :
16141614 params .append (end )
16151615 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" )
16171617
16181618 if  mode  is  not None :
16191619 params .append (mode )
@@ -3457,9 +3457,7 @@ def xadd(
34573457 """ 
34583458 pieces : list [EncodableT ] =  []
34593459 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" )
34633461
34643462 if  maxlen  is  not None :
34653463 if  not  isinstance (maxlen , int ) or  maxlen  <  1 :
@@ -3515,7 +3513,7 @@ def xautoclaim(
35153513 try :
35163514 if  int (min_idle_time ) <  0 :
35173515 raise  DataError (
3518-  "XAUTOCLAIM min_idle_time must be a non"    "negative  integer"
3516+  "XAUTOCLAIM min_idle_time must be a nonnegative  integer" 
35193517 )
35203518 except  TypeError :
35213519 pass 
@@ -3573,7 +3571,7 @@ def xclaim(
35733571 For more information see https://redis.io/commands/xclaim 
35743572 """ 
35753573 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" )
35773575 if  not  isinstance (message_ids , (list , tuple )) or  not  message_ids :
35783576 raise  DataError (
35793577 "XCLAIM message_ids must be a non empty list or " 
@@ -3906,7 +3904,7 @@ def xreadgroup(
39063904 pieces .append (str (count ))
39073905 if  block  is  not None :
39083906 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" )
39103908 pieces .append (b"BLOCK" )
39113909 pieces .append (str (block ))
39123910 if  noack :
@@ -3968,7 +3966,7 @@ def xtrim(
39683966 """ 
39693967 pieces : list [EncodableT ] =  []
39703968 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" )
39723970
39733971 if  maxlen  is  None  and  minid  is  None :
39743972 raise  DataError ("One of ``maxlen`` or ``minid`` must be specified" )
@@ -4342,14 +4340,12 @@ def _zrange(
43424340 num : Union [int , None ] =  None ,
43434341 ) ->  ResponseT :
43444342 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." )
43484344 if  (offset  is  not None  and  num  is  None ) or  (num  is  not None  and  offset  is  None ):
43494345 raise  DataError ("``offset`` and ``num`` must both be specified." )
43504346 if  bylex  and  withscores :
43514347 raise  DataError (
4352-  "``withscores`` not supported in combination "    " with ``bylex``."
4348+  "``withscores`` not supported in combination with ``bylex``." 
43534349 )
43544350 pieces  =  [command ]
43554351 if  dest :
@@ -5301,7 +5297,7 @@ def geoadd(
53015297 if  nx  and  xx :
53025298 raise  DataError ("GEOADD allows either 'nx' or 'xx', not both" )
53035299 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" )
53055301 pieces  =  [name ]
53065302 if  nx :
53075303 pieces .append ("NX" )
@@ -5487,7 +5483,7 @@ def _georadiusgeneric(
54875483 raise  DataError ("GEORADIUS invalid sort" )
54885484
54895485 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" )
54915487
54925488 if  kwargs ["store" ]:
54935489 pieces .extend ([b"STORE" , kwargs ["store" ]])
@@ -5624,13 +5620,11 @@ def _geosearchgeneric(
56245620 # FROMMEMBER or FROMLONLAT 
56255621 if  kwargs ["member" ] is  None :
56265622 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" )
56305624 if  kwargs ["member" ]:
56315625 if  kwargs ["longitude" ] or  kwargs ["latitude" ]:
56325626 raise  DataError (
5633-  "GEOSEARCH member and longitude or latitude"    "  cant be set together"
5627+  "GEOSEARCH member and longitude or latitude cant be set together" 
56345628 )
56355629 pieces .extend ([b"FROMMEMBER" , kwargs ["member" ]])
56365630 if  kwargs ["longitude" ] is  not None  and  kwargs ["latitude" ] is  not None :
@@ -5639,15 +5633,15 @@ def _geosearchgeneric(
56395633 # BYRADIUS or BYBOX 
56405634 if  kwargs ["radius" ] is  None :
56415635 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" )
56435637 if  kwargs ["unit" ] is  None :
56445638 raise  DataError ("GEOSEARCH must have unit" )
56455639 if  kwargs ["unit" ].lower () not  in "m" , "km" , "mi" , "ft" ):
56465640 raise  DataError ("GEOSEARCH invalid unit" )
56475641 if  kwargs ["radius" ]:
56485642 if  kwargs ["width" ] or  kwargs ["height" ]:
56495643 raise  DataError (
5650-  "GEOSEARCH radius and width or height"    "  cant be set together"
5644+  "GEOSEARCH radius and width or height cant be set together" 
56515645 )
56525646 pieces .extend ([b"BYRADIUS" , kwargs ["radius" ], kwargs ["unit" ]])
56535647 if  kwargs ["width" ] and  kwargs ["height" ]:
@@ -5668,7 +5662,7 @@ def _geosearchgeneric(
56685662 if  kwargs ["any" ]:
56695663 pieces .append (b"ANY" )
56705664 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" )
56725666
56735667 # other properties 
56745668 for  arg_name , byte_repr  in  (
0 commit comments