From 639f056a0707da8f51d7eab279e2dba4cf9fb5d9 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:46:23 +0000 Subject: [PATCH] style: format code with Autopep8, Black, isort and Yapf This commit fixes the style issues introduced in 517768d according to the output from Autopep8, Black, isort and Yapf. Details: None --- server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 8a60193..4c72f27 100644 --- a/server.py +++ b/server.py @@ -3,8 +3,8 @@ # Importing the required libraries from datetime import datetime from os import environ -from typing import Optional from sys import exit as sys_exit +from typing import Optional from flask import Flask, jsonify, render_template, request @@ -76,7 +76,8 @@ def func1(): return jsonify({"Datetime": datetime.now(), "Error": "Method not allowed"}), 405 -@app.route("/users/", methods=["GET", "PUT", "DELETE"]) # type: ignore +# type: ignore +@app.route("/users/", methods=["GET", "PUT", "DELETE"]) def func2(doc_id: str): """Function to handle GET, PUT and DELETE requests on /users/ route""" if request.method == "GET":