@@ -55,7 +55,7 @@ class build_rust(RustCommand):
5555 ]
5656 boolean_options = ["inplace" , "debug" , "release" , "qbuild" ]
5757
58- plat_name : Optional [str ]
58+ plat_name : Optional [str ] = None
5959
6060 def initialize_options (self ) -> None :
6161 super ().initialize_options ()
@@ -113,7 +113,7 @@ def run_for_extension(self, ext: RustExtension) -> None:
113113 self .install_extension (ext , dylib_paths )
114114
115115 def build_extension (
116- self , ext : RustExtension , forced_target_triple : Optional [str ]
116+ self , ext : RustExtension , forced_target_triple : Optional [str ] = None
117117 ) -> List ["_BuiltModule" ]:
118118
119119 target_info = self ._detect_rust_target (forced_target_triple )
@@ -393,7 +393,7 @@ def _py_limited_api(self) -> PyLimitedApi:
393393 return cast (PyLimitedApi , bdist_wheel_command .py_limited_api )
394394
395395 def _detect_rust_target (
396- self , forced_target_triple : Optional [str ]
396+ self , forced_target_triple : Optional [str ] = None
397397 ) -> Optional ["_TargetInfo" ]:
398398 cross_compile_info = _detect_unix_cross_compile_info ()
399399 if cross_compile_info is not None :
0 commit comments