kevin1024 / vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing
MIT License
2.72k stars 388 forks source link

LSP complains about missing parameters for VCR.use_casette(...) #866

Open RasmusN opened 3 months ago

RasmusN commented 3 months ago

The following code snippet will trigger an error complaint from pyright LSP.

@vcr.use_cassette("foo.yaml")
def test_foo(): ...

The error:

Diagnostics:
1. Arguments missing for parameters "instance", "args", "kwargs" [reportCallIssue]

I can't really understand where the error comes from, because use_casette does neither have a parameter called "instance" nor "args".

pyvcr version: 6.0.1