Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions test/testwwvb.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import pathlib
import random
import sys
import typing
import unittest

import uwwvb
Expand Down Expand Up @@ -48,13 +47,12 @@ def test_cases(self) -> None:
channel: WWVBChannel = "amplitude"
style = "default"
for o in options:
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}")
if o == "--channel=both":
channel = "both"
elif o == "--channel=amplitude":
channel = "amplitude"
elif o == "--channel=phase":
channel = "phase"
elif o.startswith("--style="):
style = o[8:]
else:
Expand Down
Loading