Skip to content

Commit e8aab74

Browse files
matusvaloDanielNoord
authored andcommitted
Migrated example missing-param-doc to type annotations
1 parent 7f66de0 commit e8aab74

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
def integer_sum(a, b): # [missing-param-doc]
1+
def integer_sum(a: int, b): # [missing-param-doc]
22
"""Returns sum of two integers
33
:param a: first integer
4-
:type a: int
54
"""
65
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)