@@ -5262,7 +5262,7 @@ async def exists(self, path: _SFTPPath) -> bool:
52625262
52635263 """
52645264
5265- return ( await self ._type (path ) ) != FILEXFER_TYPE_UNKNOWN
5265+ return await self ._type (path ) != FILEXFER_TYPE_UNKNOWN
52665266
52675267 async def lexists (self , path : _SFTPPath ) -> bool :
52685268 """Return if the remote path exists, without following symbolic links
@@ -5275,7 +5275,7 @@ async def lexists(self, path: _SFTPPath) -> bool:
52755275
52765276 """
52775277
5278- return ( await self ._type (path , statfunc = self .lstat ) ) != \
5278+ return await self ._type (path , statfunc = self .lstat ) != \
52795279 FILEXFER_TYPE_UNKNOWN
52805280
52815281 async def getatime (self , path : _SFTPPath ) -> Optional [float ]:
@@ -5404,7 +5404,7 @@ async def isdir(self, path: _SFTPPath) -> bool:
54045404
54055405 """
54065406
5407- return ( await self ._type (path ) ) == FILEXFER_TYPE_DIRECTORY
5407+ return await self ._type (path ) == FILEXFER_TYPE_DIRECTORY
54085408
54095409 async def isfile (self , path : _SFTPPath ) -> bool :
54105410 """Return if the remote path refers to a regular file
@@ -5417,7 +5417,7 @@ async def isfile(self, path: _SFTPPath) -> bool:
54175417
54185418 """
54195419
5420- return ( await self ._type (path ) ) == FILEXFER_TYPE_REGULAR
5420+ return await self ._type (path ) == FILEXFER_TYPE_REGULAR
54215421
54225422 async def islink (self , path : _SFTPPath ) -> bool :
54235423 """Return if the remote path refers to a symbolic link
@@ -5430,7 +5430,7 @@ async def islink(self, path: _SFTPPath) -> bool:
54305430
54315431 """
54325432
5433- return ( await self ._type (path , statfunc = self .lstat ) ) == \
5433+ return await self ._type (path , statfunc = self .lstat ) == \
54345434 FILEXFER_TYPE_SYMLINK
54355435
54365436 async def remove (self , path : _SFTPPath ) -> None :
@@ -8171,12 +8171,12 @@ async def _type(self, path: bytes) -> int:
81718171 async def exists (self , path : bytes ) -> bool :
81728172 """Return if a path exists"""
81738173
8174- return ( await self ._type (path ) ) != FILEXFER_TYPE_UNKNOWN
8174+ return await self ._type (path ) != FILEXFER_TYPE_UNKNOWN
81758175
81768176 async def isdir (self , path : bytes ) -> bool :
81778177 """Return if the path refers to a directory"""
81788178
8179- return ( await self ._type (path ) ) == FILEXFER_TYPE_DIRECTORY
8179+ return await self ._type (path ) == FILEXFER_TYPE_DIRECTORY
81808180
81818181 def scandir (self , path : bytes ) -> AsyncIterator [SFTPName ]:
81828182 """Return names and attributes of the files in a directory"""
0 commit comments