Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in sentipy.supported() (bear type) #11

Open
jmaslek opened this issue Nov 24, 2021 · 0 comments
Open

Error in sentipy.supported() (bear type) #11

jmaslek opened this issue Nov 24, 2021 · 0 comments

Comments

@jmaslek
Copy link

jmaslek commented Nov 24, 2021

Hi all!

I am coming here from GamestonkTerminal. When we run some of the commands you guys provided, we get errors with the supported() call (looks like just something with the static type):

    if not sentipy.supported(ticker):
  File "<string>", line 37, in supported
  File "/opt/anaconda3/envs/gst/lib/python3.9/site-packages/beartype/_decor/_error/errormain.py", line 312, in raise_pep_call_exception
    raise exception_cls(  # type: ignore[misc]
beartype.roar.BeartypeCallHintPepReturnException: @beartyped Sentipy.supported() return "None" violates type hint <class 'bool'>, as "None" not bool.

We also get this in another function

File "/Users/james/GamestonkTerminal/gamestonk_terminal/common/behavioural_analysis/sentimentinvestor_view.py", line 99, in display_metrics
    if not sentipy.supported(ticker):
  File "<string>", line 37, in supported
  File "/opt/anaconda3/envs/gst/lib/python3.9/site-packages/beartype/_decor/_error/errormain.py", line 312, in raise_pep_call_exception
    raise exception_cls(  # type: ignore[misc]
beartype.roar.BeartypeCallHintPepReturnException: @beartyped Sentipy.supported() return "None" violates type hint <class 'bool'>, as "None" not bool.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant