Skip to content

Commit 7defcbd

Browse files
matusvaloDanielNoord
authored andcommitted
Migrate to type annotations
1 parent 658269d commit 7defcbd

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
def integer_sum(a, b): # [missing-type-doc]
1+
def integer_sum(a: int, b): # [missing-type-doc]
22
"""Returns sum of two integers
33
:param a: first integer
4-
:type a: int
54
:param b: second integer
65
"""
76
return a + b
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
def integer_sum(a, b):
1+
def integer_sum(a: int, b: int):
22
"""Returns sum of two integers
33
:param a: first integer
4-
:type a: int
54
:param b: second integer
6-
:type b: int
75
"""
86
return a + b

0 commit comments

Comments
 (0)