testwwvb: Allow redundant cast for pyrefly
mypy requires this cast, and pyright at least doesn't object. Signed-off-by: Jeff Epler <jepler@gmail.com>
This commit is contained in:
parent
af3defa722
commit
7e7294fc23
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ class WWVBTestCase(unittest.TestCase):
|
|||
if o.startswith("--channel="):
|
||||
value = o[10:]
|
||||
if value in {"both", "amplitude", "phase"}:
|
||||
# pyrefly: ignore # redundant-cast
|
||||
channel = typing.cast("WWVBChannel", value)
|
||||
else:
|
||||
raise ValueError(f"Unknown channel {o!r}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue