Skip to content

Commit

Permalink
docs: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanuel-tirado committed Sep 12, 2024
1 parent eeb16ee commit 629b0b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pantos/servicenode/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@
_logger = logging.getLogger(__name__)
"""Logger for this module."""


def create_dummy_application() -> flask.Flask:
"""Create a useless dummy web app avoiding all the initialization
of additional components. Mainly used for docs generation.
"""
from pantos.servicenode.restapi import flask_app
return flask_app


def create_application() -> flask.Flask:
"""Create the service node application.
Expand Down
4 changes: 2 additions & 2 deletions pantos/servicenode/restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def get(self) -> flask.Response:
- in: query
name: source_blockchain
schema:
$ref: '#/components/schemas/_Bids/properties/source_blockchain' # references the schema which has been added to the definitions in the previous Python code
$ref: '#/components/schemas/_Bids/properties/source_blockchain'
required: true
description: Numeric ID of the user to get
- in: query
Expand All @@ -309,7 +309,7 @@ def get(self) -> flask.Response:
200:
description: 'ok'
"""

try:
query_arguments = flask_restful.request.args
bids_parameter = _BidsSchema().load(query_arguments)
Expand Down

0 comments on commit 629b0b0

Please sign in to comment.