Skip to content

Commit 5ab059f

Browse files
author
RamanjaneyuluIdavalapati
committed
KwikAPI with type hints allowed. Type must be specified and type conversion was removed
1 parent eb101ba commit 5ab059f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ from kwikapi import API
7474
from logging import Logger
7575

7676
class BaseCalc():
77-
def add(self, a, b):
77+
def add(self, a: int, b: int) -> int:
7878
return a + b
7979

80-
def subtract(self, a, b):
80+
def subtract(self, a: int, b: int) -> int:
8181
return a - b
8282

8383
class StandardCalc():
84-
def multiply(self, a, b):
84+
def multiply(self, a: int, b: int) -> int:
8585
return a * b
8686

87-
def divide(self, a, b):
87+
def divide(self, a: int, b: int) -> float:
8888
return a / b
8989

9090
api = API(Logger, default_version='v1')

0 commit comments

Comments
 (0)