Skip to content

Commit

Permalink
make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
zariiii9003 committed Oct 17, 2023
1 parent 2058bef commit b785094
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pycanape/cnp_api/cnp_prototype.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,10 +1108,7 @@ def _get_last_error(self, result, function, args):
)

if error_code > 0:
error_msg = (
f"{cnp_constants.ErrorCodes(error_code).name}: " # type: ignore[union-attr]
f"{ptr.contents.value.decode('ascii')}"
)
error_msg = f"{cnp_constants.ErrorCodes(error_code).name}: {ptr.contents.value.decode('ascii')}" # type: ignore[union-attr]
raise CANapeError(error_code, error_msg, function.__name__)
return args

Expand Down

0 comments on commit b785094

Please sign in to comment.