vulnersCom / api

Vulners Python API wrapper
GNU General Public License v3.0
356 stars 60 forks source link

Unreachable code error #39

Closed nkormakov closed 5 months ago

nkormakov commented 1 year ago

Hi, I've encountered an IDE error "Code is unreachable - Pylance"

image

It is caused by __call__ method in Endpoint class, which just raising RuntimeError. Adding an annotation to it (I set it to None because there's nothing to return, but any other will work too) will fix this error:

image image

I did not create a PR because I'm not sure which branch is the main one for Python library

vulnersCom commented 5 months ago

Looks like it's already fixed.