Skip to content

Commit e00c834

Browse files
committed
Adress type checker not dealing with try..except block
1 parent a808242 commit e00c834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setuptools_rust/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def _get_bdist_wheel_cmd( # type: ignore[no-any-unimported]
784784
) -> Optional[CommandBdistWheel]:
785785
try:
786786
cmd_obj = dist.get_command_obj("bdist_wheel", create=create)
787-
cmd_obj.ensure_finalized()
788-
return cast(CommandBdistWheel, cmd_obj) # type: ignore [no-any-unimported]
787+
cmd_obj.ensure_finalized() # type: ignore[union-attr]
788+
return cast(CommandBdistWheel, cmd_obj) # type: ignore[no-any-unimported]
789789
except Exception:
790790
return None

0 commit comments

Comments
 (0)