wwvb 3.0.7__py3-none-any.whl → 4.0.0a0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
uwwvb.py CHANGED
@@ -2,6 +2,8 @@
2
2
  #
3
3
  # SPDX-License-Identifier: GPL-3.0-only
4
4
 
5
+ # ruff: noqa: C405 PYI024 PLR2004 FBT001 FBT002
6
+
5
7
  """Implementation of a WWVB state machine & decoder for resource-constrained systems"""
6
8
 
7
9
  from __future__ import annotations
@@ -30,7 +32,8 @@ class WWVBDecoder:
30
32
  def update(self, value: int) -> list[int] | None:
31
33
  """Update the _state machine when a new symbol is received.
32
34
 
33
- If a possible complete _minute is received, return it; otherwise, return None"""
35
+ If a possible complete _minute is received, return it; otherwise, return None
36
+ """
34
37
  result = None
35
38
  if self.state == 1:
36
39
  self.minute = []
@@ -87,7 +90,7 @@ def get_am_bcd(seq: list[int], *poslist: int) -> int | None:
87
90
  return result
88
91
 
89
92
 
90
- def decode_wwvb( # pylint: disable=too-many-return-statements
93
+ def decode_wwvb(
91
94
  t: list[int] | None,
92
95
  ) -> WWVBMinute | None:
93
96
  """Convert a received minute of wwvb symbols to a WWVBMinute. Returns None if any error is detected."""