api icon indicating copy to clipboard operation
api copied to clipboard

Unreachable code error

Open nkormakov opened this issue 2 years ago • 0 comments

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

nkormakov avatar Feb 03 '23 11:02 nkormakov