Skip to content

Commit 4b31fb4

Browse files
committed
fix: return the input value in assert_type()
It was returning None at runtime, which is incorrect.
1 parent 15bd33a commit 4b31fb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/denokv/_pycompat/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,4 @@ def assert_never(value: Never, /) -> Never:
177177
else:
178178

179179
def assert_type(val: _T, typ: Any, /) -> _T:
180-
pass
180+
return val

0 commit comments

Comments
 (0)