@@ -189,7 +189,7 @@ def will_self_overwrite(self, dest_provider, src_path, dest_path):
189189 def can_intra_move (
190190 self ,
191191 other : provider .BaseProvider ,
192- path : wb_path . WaterButlerPath = None
192+ path : WaterButlerPath = None
193193 ) -> bool :
194194 return self == other
195195
@@ -226,7 +226,7 @@ async def intra_copy(
226226 }
227227 }),
228228 headers = {'Content-Type' : 'application/json' },
229- expects = ( 200 , 201 ) ,
229+ expects = { 200 , 201 } ,
230230 throws = exceptions .IntraCopyError
231231 ) as resp :
232232 data = await resp .json ()
@@ -235,17 +235,20 @@ async def intra_copy(
235235
236236 async def intra_move (
237237 self , # type: ignore
238- dest_provider : provider .BaseProvider , src_path : WaterButlerPath ,
238+ dest_provider : provider .BaseProvider ,
239+ src_path : WaterButlerPath ,
239240 dest_path : WaterButlerPath
240241 ) -> Tuple [BaseBoxMetadata , bool ]:
241-
242242 if src_path .identifier == dest_path .identifier :
243243 raise exceptions .IntraCopyError (
244244 "Cannot overwrite a file with itself" ,
245245 code = HTTPStatus .CONFLICT
246246 )
247247
248- if dest_path .identifier is not None and str (dest_path ).lower () != str (src_path ).lower ():
248+ if (
249+ dest_path .identifier is not None and
250+ str (dest_path ).lower () != str (src_path ).lower ()
251+ ):
249252 await dest_provider .delete (dest_path )
250253
251254 async with self .request (
@@ -261,7 +264,7 @@ async def intra_move(
261264 }
262265 }),
263266 headers = {'Content-Type' : 'application/json' },
264- expects = ( 200 , 201 ) ,
267+ expects = { 200 , 201 } ,
265268 throws = exceptions .IntraCopyError
266269 ) as resp :
267270 data = await resp .json ()
0 commit comments