From 79b4cb795ecd91d5ce4dfec5fce7b49c4661a832 Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Tue, 14 May 2019 05:00:16 +0800 Subject: [PATCH] new: dev: annotation for bookmark --- bukuserver/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bukuserver/server.py b/bukuserver/server.py index 54cb65b..8402501 100644 --- a/bukuserver/server.py +++ b/bukuserver/server.py @@ -9,6 +9,7 @@ from buku import BukuDb, __version__, network_handler from flask.cli import FlaskGroup from flask_admin import Admin from flask_api import exceptions, FlaskAPI, status +from flask_api.response import APIResponse from flask_bootstrap import Bootstrap from flask_paginate import Pagination, get_page_parameter, get_per_page_parameter from markupsafe import Markup @@ -228,7 +229,7 @@ def refresh_bookmarks(): return res -def bookmark_api(id): +def bookmark_api(id: int) -> APIResponse: res = None try: id = int(id)