@@ -321,9 +321,7 @@ def os(self) -> OSType:
321321 return (
322322 OSType .WINDOWS
323323 if self .is_windows_fs
324- else OSType .MACOS
325- if self .is_macos
326- else OSType .LINUX
324+ else OSType .MACOS if self .is_macos else OSType .LINUX
327325 )
328326
329327 @os .setter
@@ -930,9 +928,9 @@ def normpath(self, path: AnyStr) -> AnyStr:
930928 path_components : List [AnyStr ] = path_str .split (
931929 sep
932930 ) # pytype: disable=invalid-annotation
933- collapsed_path_components : List [
934- AnyStr
935- ] = [] # pytype: disable=invalid-annotation
931+ collapsed_path_components : List [AnyStr ] = (
932+ []
933+ ) # pytype: disable=invalid-annotation
936934 dot = matching_string (path_str , "." )
937935 dotdot = matching_string (path_str , ".." )
938936 for component in path_components :
@@ -1220,12 +1218,10 @@ def joinpaths(self, *paths: AnyStr) -> AnyStr:
12201218 return matching_string (file_paths [0 ], "" ).join (joined_path_segments )
12211219
12221220 @overload
1223- def _path_components (self , path : str ) -> List [str ]:
1224- ...
1221+ def _path_components (self , path : str ) -> List [str ]: ...
12251222
12261223 @overload
1227- def _path_components (self , path : bytes ) -> List [bytes ]:
1228- ...
1224+ def _path_components (self , path : bytes ) -> List [bytes ]: ...
12291225
12301226 def _path_components (self , path : AnyStr ) -> List [AnyStr ]:
12311227 """Breaks the path into a list of component names.
@@ -1888,9 +1884,7 @@ def _handle_broken_link_with_trailing_sep(self, path: AnyStr) -> None:
18881884 error = (
18891885 errno .ENOENT
18901886 if self .is_macos
1891- else errno .EINVAL
1892- if self .is_windows_fs
1893- else errno .ENOTDIR
1887+ else errno .EINVAL if self .is_windows_fs else errno .ENOTDIR
18941888 )
18951889 self .raise_os_error (error , path )
18961890
0 commit comments