Conditions | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | from flask_restful import Resource, reqparse |
||
23 | def put(self): |
||
24 | """Load a specific model version into memory from Redis. |
||
25 | |||
26 | Either specifiy the model version or 'latest'. |
||
27 | """ |
||
28 | parser = reqparse.RequestParser() |
||
29 | parser.add_argument("version", type=str, required=True) |
||
30 | args = parser.parse_args() |
||
31 | return args["version"] |
||
32 | |||
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.