The _call_api_on_func looks like it creates and returns a wrapper function that invokes the API which is then passed into _output_format which creates another wrapper around the function to convert the output of the API into the requested format.
Command used
pylint av_pylint_test.py
Pylint output
************* Module av_pylint_test
av_pylint_test.py:9:0: W0632: Possible unbalanced tuple unpacking with sequence defined at line 76 of alpha_vantage.timeseries: left side has 2 labels, right side has 3 values (unbalanced-tuple-unpacking)
av_pylint_test.py:10:17: E1101: Instance of 'str' has no 'keys' member (no-member)
------------------------------------------------------------------
Your code has been rated at 2.50/10 (previous run: 2.50/10, +0.00)
Expected behavior
pylint would follow the decorators and understand the actual output.
vscode devcontainer based upon mcr.microsoft.com/devcontainers/python:3
Additional dependencies
alpha-vantage==2.3.1
pandas==1.5.3
There are a lot of other libraries loaded into this environment. In case there are additional dependencies that I didn't realize, this is the full output of the pip freeze:
Bug description
Using
pip install --upgrade alpha_vantage
and the following application (av_pylint_test.py):Unfortunately, to get an ALPHA VANTAGE API key they do require to register with their website. Using the
demo
key doesn't work.This may be a duplicate of #7437 but I'm not sure if that is the case or not.
Following the code a little bit:
The _call_api_on_func looks like it creates and returns a wrapper function that invokes the API which is then passed into _output_format which creates another wrapper around the function to convert the output of the API into the requested format.
Command used
Pylint output
Expected behavior
pylint would follow the decorators and understand the actual output.
Pylint version
OS / Environment
vscode devcontainer based upon mcr.microsoft.com/devcontainers/python:3
Additional dependencies
alpha-vantage==2.3.1 pandas==1.5.3
There are a lot of other libraries loaded into this environment. In case there are additional dependencies that I didn't realize, this is the full output of the
pip freeze
: