dbt-selly/dbt-env/lib/python3.8/site-packages/jsonrpc/tests/py35_utils.py

8 lines
205 B
Python

# Python3.5+ code.
# This won't even parse in earlier versions, so it's kept in a separate file
# and imported when needed.
def distance(a: float, b: float) -> float:
return (a ** 2 + b ** 2) ** 0.5