Skip to content

Commit

Permalink
Address type checker not dealing with try..except block
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Aug 18, 2023
1 parent a808242 commit 85df414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setuptools_rust/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def _get_bdist_wheel_cmd( # type: ignore[no-any-unimported]
) -> Optional[CommandBdistWheel]:
try:
cmd_obj = dist.get_command_obj("bdist_wheel", create=create)
cmd_obj.ensure_finalized()
return cast(CommandBdistWheel, cmd_obj) # type: ignore [no-any-unimported]
cmd_obj.ensure_finalized() # type: ignore[union-attr]
return cast(CommandBdistWheel, cmd_obj) # type: ignore[no-any-unimported]
except Exception:
return None

0 comments on commit 85df414

Please sign in to comment.