Skip to content

Commit 0a1c403

Browse files
authored
Merge pull request #188 from Job-Heersink/fix-temp-44-type-hints
fix type hints for temp44()
2 parents 513e093 + 46616f0 commit 0a1c403

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pyModeS"
3-
version = "2.21"
3+
version = "2.21.1"
44
description = "Python Mode-S and ADS-B Decoder"
55
authors = [{ name = "Junzi Sun", email = "[email protected]" }]
66
license = { text = "GNU GPL v3" }

src/pyModeS/decoder/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ def _print(label, value, unit=None):
220220
if BDS == "BDS44":
221221
_print("Wind speed", commb.wind44(msg)[0], "knots")
222222
_print("Wind direction", commb.wind44(msg)[1], "degrees")
223-
_print("Temperature 1", commb.temp44(msg)[0], "Celsius")
224-
_print("Temperature 2", commb.temp44(msg)[1], "Celsius")
223+
_print("Temperature", commb.temp44(msg), "Celsius")
225224
_print("Pressure", commb.p44(msg), "hPa")
226225
_print("Humidity", commb.hum44(msg), "%")
227226
_print("Turbulence", commb.turb44(msg))

src/pyModeS/decoder/bds/bds44.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def wind44(msg: str) -> Tuple[Optional[int], Optional[float]]:
8282
return speed, direction
8383

8484

85-
def temp44(msg: str) -> Tuple[float, float]:
85+
def temp44(msg: str) -> float:
8686
"""Static air temperature.
8787
8888
Args:

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)