Pyright returns different findings than mypy, and can be more strict in some cases. Users are seeing these issue because vscode python uses pyright. Run the following command to see findings and address them:
pip install pyright
pyright --verifytypes click