Skip to content

Commit

Permalink
KwikAPI with type hints allowed. Type must be specified and type conv…
Browse files Browse the repository at this point in the history
…ersion was removed
  • Loading branch information
RamanjaneyuluIdavalapati committed Feb 13, 2018
1 parent eb101ba commit 5ab059f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ from kwikapi import API
from logging import Logger

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

def subtract(self, a, b):
def subtract(self, a: int, b: int) -> int:
return a - b

class StandardCalc():
def multiply(self, a, b):
def multiply(self, a: int, b: int) -> int:
return a * b

def divide(self, a, b):
def divide(self, a: int, b: int) -> float:
return a / b

api = API(Logger, default_version='v1')
Expand Down

0 comments on commit 5ab059f

Please sign in to comment.