blob: 9a59fea88b1d50f563aeb2ae451f9eb253cc2b3b (
plain)
1
2
3
4
5
6
7
8
|
def integer_sum(a: int, b: int): # [missing-raises-doc]
"""Returns sum of two integers
:param a: first integer
:param b: second integer
"""
if not (isinstance(a, int) and isinstance(b, int)):
raise ValueError('Function supports only integer parameters.')
return a + b
|