Skip to content

Correct Missing Type Annotations #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 23, 2022
5 changes: 2 additions & 3 deletions adafruit_tlv493d.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,9 @@ def magnetic(self) -> Tuple[float, float, float]:
)

# pylint: disable=no-self-use
def _unpack_and_scale(
self, top: int, bottom: int
) -> float:
def _unpack_and_scale(self, top: int, bottom: int) -> float:
binval = struct.unpack_from(">h", bytearray([top, bottom]))[0]
binval = binval >> 4
return binval * 0.098

# pylint: enable=no-self-use