@@ -443,8 +443,7 @@ def __init__(
443443 ):
444444 self .auxiliary_dir = Path (auxiliary_dir )
445445 self .build_lib = Path (build_lib ).resolve ()
446- # TODO: Update typeshed distutils stubs to overload non-None return type by default
447- self ._file = dist .get_command_obj ("build_py" ).copy_file # type: ignore[union-attr]
446+ self ._file = dist .get_command_obj ("build_py" ).copy_file
448447 super ().__init__ (dist , name , [self .auxiliary_dir ])
449448
450449 def __call__ (self , wheel : WheelFile , files : list [str ], mapping : dict [str , str ]):
@@ -462,9 +461,7 @@ def _create_file(self, relative_output: str, src_file: str, link=None):
462461 dest = self .auxiliary_dir / relative_output
463462 if not dest .parent .is_dir ():
464463 dest .parent .mkdir (parents = True )
465- # TODO: Update typeshed distutils stubs so distutils.cmd.Command.copy_file, accepts PathLike
466- # same with methods used by copy_file
467- self ._file (src_file , dest , link = link ) # type: ignore[arg-type]
464+ self ._file (src_file , dest , link = link )
468465
469466 def _create_links (self , outputs , output_mapping ):
470467 self .auxiliary_dir .mkdir (parents = True , exist_ok = True )
0 commit comments