Skip to content

Commit 62e8753

Browse files
committed
lint: perform typing checks on test.py as well
1 parent 9013f7f commit 62e8753

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test_deps:
55

66
lint:
77
ruff check src
8-
mypy --install-types --non-interactive --check-untyped-defs src
8+
mypy --install-types --non-interactive --check-untyped-defs src test.py
99

1010
test:
1111
coverage run --branch --include 'src/*' -m unittest discover -s test -v

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_input_before_epoch(self):
194194
totp = pyotp.TOTP("GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ")
195195
# -1 and -29.5 round down to 0 (epoch)
196196
self.assertEqual(totp.at(-1), "755224")
197-
self.assertEqual(totp.at(-29.5), "755224")
197+
self.assertEqual(totp.at(-29.5), "755224") # type: ignore[arg-type]
198198
with self.assertRaises(ValueError):
199199
totp.at(-30)
200200

0 commit comments

Comments
 (0)