@@ -55,7 +55,7 @@ class build_rust(RustCommand):
55
55
]
56
56
boolean_options = ["inplace" , "debug" , "release" , "qbuild" ]
57
57
58
- plat_name : Optional [str ]
58
+ plat_name : Optional [str ] = None
59
59
60
60
def initialize_options (self ) -> None :
61
61
super ().initialize_options ()
@@ -113,7 +113,7 @@ def run_for_extension(self, ext: RustExtension) -> None:
113
113
self .install_extension (ext , dylib_paths )
114
114
115
115
def build_extension (
116
- self , ext : RustExtension , forced_target_triple : Optional [str ]
116
+ self , ext : RustExtension , forced_target_triple : Optional [str ] = None
117
117
) -> List ["_BuiltModule" ]:
118
118
119
119
target_info = self ._detect_rust_target (forced_target_triple )
@@ -393,7 +393,7 @@ def _py_limited_api(self) -> PyLimitedApi:
393
393
return cast (PyLimitedApi , bdist_wheel_command .py_limited_api )
394
394
395
395
def _detect_rust_target (
396
- self , forced_target_triple : Optional [str ]
396
+ self , forced_target_triple : Optional [str ] = None
397
397
) -> Optional ["_TargetInfo" ]:
398
398
cross_compile_info = _detect_unix_cross_compile_info ()
399
399
if cross_compile_info is not None :
0 commit comments