Skip to content

How to get rid of this error message? #7637

Closed Answered by ghost
hw2007 asked this question in Q&A
Discussion options

You must be logged in to vote

The reason you might be seeing this in Zed and not other IDEs is likely the choice of language server (which can have different behaviors). Zed uses pyright.

Since your update() function is overriding the implementation in the Sprite class which takes the *args and **kwargs parameters, I believe this is correct behavior (even though your code will likely run fine without explicitly adding it).

Updating your override to

def update(self, *args, **kwargs):
    ...

should get the Language Server to stop giving you that error.


Alternatively you can disable that setting in the pyright configuration: setting reportIncompatibleMethodOverride to none should do the trick. See https://microsoft.git…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxdeviant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant