@@ -148,8 +148,7 @@ def compile_c_extension(
148
148
cmd .include_dirs = include_dirs
149
149
if build_dir :
150
150
cmd .build_temp = build_dir
151
- # A deficiency in typeshed's stubs means we have to type: ignore:
152
- cmd .ensure_finalized () # type: ignore[attr-defined]
151
+ cmd .ensure_finalized ()
153
152
154
153
compiler = new_compiler ()
155
154
customize_compiler (compiler )
@@ -160,8 +159,8 @@ def compile_c_extension(
160
159
library_filename = compiler .library_filename (extension_name , output_dir = library_dir )
161
160
if newer_group (common_sources , library_filename , "newer" ):
162
161
if sys .platform == "win32" :
163
- # A deficiency in typeshed's stubs means we have to type: ignore:
164
- pdb = compiler .static_lib_format % (extension_name , ".pdb" ) # type: ignore[attr-defined]
162
+ assert compiler . static_lib_format
163
+ pdb = compiler .static_lib_format % (extension_name , ".pdb" )
165
164
compile_opts = [f"/Fd{ library_dir } \\ { pdb } " ]
166
165
compile_opts .extend (extra_compile_args )
167
166
else :
@@ -213,7 +212,7 @@ def compile_c_extension(
213
212
ext_path ,
214
213
libraries = cmd .get_libraries (extension ),
215
214
extra_postargs = extra_link_args ,
216
- export_symbols = cmd .get_export_symbols (extension ),
215
+ export_symbols = cmd .get_export_symbols (extension ), # type: ignore[no-untyped-call]
217
216
debug = cmd .debug ,
218
217
build_temp = cmd .build_temp ,
219
218
)
0 commit comments