@@ -110,7 +110,7 @@ def _get_inplace_equivalent(self, build_py, ext: Extension) -> tuple[str, str]:
110110 regular_file = os .path .join (self .build_lib , filename )
111111 return (inplace_file , regular_file )
112112
113- def copy_extensions_to_source (self ):
113+ def copy_extensions_to_source (self ) -> None :
114114 build_py = self .get_finalized_command ('build_py' )
115115 for ext in self .extensions :
116116 inplace_file , regular_file = self ._get_inplace_equivalent (build_py , ext )
@@ -191,7 +191,7 @@ def initialize_options(self):
191191 self .ext_map = {}
192192 self .editable_mode = False
193193
194- def finalize_options (self ):
194+ def finalize_options (self ) -> None :
195195 _build_ext .finalize_options (self )
196196 self .extensions = self .extensions or []
197197 self .check_extensions_list (self .extensions )
@@ -254,7 +254,7 @@ def get_export_symbols(self, ext):
254254 return ext .export_symbols
255255 return _build_ext .get_export_symbols (self , ext )
256256
257- def build_extension (self , ext ):
257+ def build_extension (self , ext ) -> None :
258258 ext ._convert_pyx_sources_to_lang ()
259259 _compiler = self .compiler
260260 try :
@@ -344,7 +344,7 @@ def __get_output_extensions(self):
344344 if self .get_finalized_command ('build_py' ).optimize :
345345 yield '.pyo'
346346
347- def write_stub (self , output_dir , ext , compile = False ):
347+ def write_stub (self , output_dir , ext , compile = False ) -> None :
348348 stub_file = os .path .join (output_dir , * ext ._full_name .split ('.' )) + '.py'
349349 self ._write_stub_file (stub_file , ext , compile )
350350
@@ -415,7 +415,7 @@ def link_shared_object(
415415 extra_postargs = None ,
416416 build_temp = None ,
417417 target_lang = None ,
418- ):
418+ ) -> None :
419419 self .link (
420420 self .SHARED_LIBRARY ,
421421 objects ,
@@ -450,7 +450,7 @@ def link_shared_object(
450450 extra_postargs = None ,
451451 build_temp = None ,
452452 target_lang = None ,
453- ):
453+ ) -> None :
454454 # XXX we need to either disallow these attrs on Library instances,
455455 # or warn/abort here if set, or something...
456456 # libraries=None, library_dirs=None, runtime_library_dirs=None,
0 commit comments