Total Complexity | 1 |
Total Lines | 9 |
Duplicated Lines | 0 % |
1 | from flask_restful import Resource, reqparse |
||
6 | class Catalogue(Resource): |
||
7 | def get(self): |
||
8 | """Show a catalogue of available endpoints.""" |
||
9 | return { |
||
10 | "predict_url": url_for("api.predict", |
||
11 | _external=True), |
||
12 | "model_version_url": url_for("api.model", |
||
13 | _external=True), |
||
14 | "api_version": cf_predict.__version__ |
||
15 | } |
||
44 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.