Skip to content

Commit

Permalink
Ignore a mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Dec 31, 2019
1 parent c1149fe commit f38ae43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pamqp/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def unmarshal(data_in: bytes) -> typing.Tuple[int, int, FrameTypes]:
def _frame_parts(data: bytes) -> typing.Tuple[int, int, typing.Optional[int]]:
"""Attempt to decode a low-level frame, returning frame parts"""
try: # Get the Frame Type, Channel Number and Frame Size
return struct.unpack(
'>BHI', data[0:constants.FRAME_HEADER_SIZE]) # type: ignore
return struct.unpack( # type: ignore
'>BHI', data[0:constants.FRAME_HEADER_SIZE])
except struct.error: # Did not receive a full frame
return UNMARSHAL_FAILURE

Expand Down

0 comments on commit f38ae43

Please sign in to comment.