@@ -256,7 +256,7 @@ class ServerManager:
256256 def __init__ (self , config : Config , cog : "Audio" , timeout : Optional [int ] = None ) -> None :
257257 self .ready : asyncio .Event = asyncio .Event ()
258258 self ._config = config
259- self ._proc : Optional [asyncio .subprocess .Process ] = None # pylint:disable=no-member
259+ self ._proc : Optional [asyncio .subprocess .Process ] = None
260260 self ._shutdown : bool = False
261261 self .start_monitor_task = None
262262 self .timeout = timeout
@@ -326,13 +326,11 @@ async def _start(self, java_path: str) -> None:
326326 )
327327 )
328328 try :
329- self ._proc = (
330- await asyncio .subprocess .create_subprocess_exec ( # pylint:disable=no-member
331- * args ,
332- cwd = str (LAVALINK_DOWNLOAD_DIR ),
333- stdout = asyncio .subprocess .PIPE ,
334- stderr = asyncio .subprocess .STDOUT ,
335- )
329+ self ._proc = await asyncio .subprocess .create_subprocess_exec (
330+ * args ,
331+ cwd = str (LAVALINK_DOWNLOAD_DIR ),
332+ stdout = asyncio .subprocess .PIPE ,
333+ stderr = asyncio .subprocess .STDOUT ,
336334 )
337335 log .info ("Managed Lavalink node started. PID: %s" , self ._proc .pid )
338336 try :
@@ -413,13 +411,11 @@ async def _has_java(self) -> Tuple[bool, Optional[Tuple[int, int]]]:
413411
414412 async def _get_java_version (self ) -> Tuple [int , int ]:
415413 """This assumes we've already checked that java exists."""
416- _proc : asyncio .subprocess .Process = (
417- await asyncio .create_subprocess_exec ( # pylint:disable=no-member
418- self ._java_exc ,
419- "-version" ,
420- stdout = asyncio .subprocess .PIPE ,
421- stderr = asyncio .subprocess .PIPE ,
422- )
414+ _proc : asyncio .subprocess .Process = await asyncio .create_subprocess_exec (
415+ self ._java_exc ,
416+ "-version" ,
417+ stdout = asyncio .subprocess .PIPE ,
418+ stderr = asyncio .subprocess .PIPE ,
423419 )
424420 # java -version outputs to stderr
425421 _ , err = await _proc .communicate ()
@@ -533,7 +529,7 @@ async def _is_up_to_date(self):
533529 return True
534530 args , _ = await self ._get_jar_args ()
535531 args .append ("--version" )
536- _proc = await asyncio .subprocess .create_subprocess_exec ( # pylint:disable=no-member
532+ _proc = await asyncio .subprocess .create_subprocess_exec (
537533 * args ,
538534 cwd = str (LAVALINK_DOWNLOAD_DIR ),
539535 stdout = asyncio .subprocess .PIPE ,
0 commit comments