2 ms·
Related: https://github.com/kislyuk/ensure https://github.com/kislyuk/ensure A (relatively) high performance runtime annotation type checker. from ensure
by ak217 12y ago
Related: https://github.com/kislyuk/ensure https://github.com/kislyuk/ensure
A (relatively) high performance runtime annotation type checker.
from ensure import ensure_annotations
@ensure_annotations
def f(x: int, y: float) -> float:
return x+y