Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@accepts(a=Any(int, float), b=Any(int, float)) def add_ints_or_floats(a, b): return a + b
Type dispatch and validation for run-time Python