Skip to content

Commit

Permalink
Merge pull request #3 from RamanjaneyuluIdavalapati/master
Browse files Browse the repository at this point in the history
Type checking removed
  • Loading branch information
Ram Idavalapati authored Feb 13, 2018
2 parents 811443d + 5ab059f commit 4fddc65
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ deploy:
- kwikapi/__init__.py
- kwikapi/django/__init__.py
- kwikapi/django/kwikapi_django.py
name: kwikapi.django-0.1
tag_name: 0.1
name: kwikapi.django-0.2
tag_name: 0.2
on:
repo: deep-compute/kwikapi.django
- provider: pypi
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $ pip install kwikapi[django]

### Create a Django project

(Ref: https://docs.djangoproject.com/en/1.9/intro/tutorial01/)
(Ref: https://docs.djangoproject.com/en/1.11/intro/tutorial01/)

```bash
$ django-admin startproject django_kwikapi
Expand Down Expand Up @@ -57,7 +57,7 @@ urlpatterns = [
from django.conf.urls import url, include

from . import views
from kwikapi_django import RequestHandler
from kwikapi.django import RequestHandler

urlpatterns = [
url(r'api/', RequestHandler(views.api).handle_request),
Expand All @@ -74,17 +74,17 @@ from kwikapi import API
from logging import Logger

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

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

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

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

api = API(Logger, default_version='v1')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

version = '0.1'
version = '0.2'
setup(
name="kwikapi-django",
version=version,
Expand Down

0 comments on commit 4fddc65

Please sign in to comment.