Skip to content

Commit

Permalink
lint cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
da4089 committed Oct 28, 2024
1 parent 00c8737 commit 33a8772
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xdrlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ def get_position(self) -> int:
def set_position(self, position: int):
"""Set the position within the decoding buffer.
:param position: Integer offset of next position to be decoded from the buffer.
:param position: Integer offset of next position to be decoded
from the buffer.
"""
self.__pos = position

Expand Down Expand Up @@ -326,7 +327,8 @@ def unpack_hyper(self) -> int:
return struct.unpack(">q", data)[0]

def unpack_float(self) -> float:
"""Decode a 32-bit (single precision) floating point value at the current position.
"""Decode a 32-bit (single precision) floating point value at
the current position.
Advances the internal position by 4 octets."""
i = self.__pos
Expand All @@ -337,7 +339,8 @@ def unpack_float(self) -> float:
return struct.unpack(">f", data)[0]

def unpack_double(self) -> float:
"""Decode a 364-bit (double precision) floating point value at the current position.
"""Decode a 64-bit (double precision) floating point value at
the current position.
Advances the internal position by 4 octets."""
i = self.__pos
Expand Down

0 comments on commit 33a8772

Please sign in to comment.