Skip to content

Conversation

@bmerkle
Copy link
Contributor

@bmerkle bmerkle commented Jan 3, 2026

- fixed No parameter named "xyz "PyrightreportCallIssue for dataclasses, e.g. class Term
Copy link
Collaborator

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm skeptical that this is the right fix.

And maybe this should import dataclass from .dataclasses? (I.e. src/typeagent/knowpro/dataclasses.py, which you introduced to fix this?!?!)

Add pyright to development dependencies and update .gitignore for .venv
the real issue was the pyright version bundeled in the VSCode plugins (either VSCode-pyright or VSCode-pylance plugin).
See issue microsoft#149
Copy link
Collaborator

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do wonder if things wouldn't be much easier if we just recommended not to install the standalone Pyright plugin and rely on Pylance? That's what I do and I don't see the problem. I have not messed with the Pylance version. But it's quite possible that on Windows things are different. (I can't test that right now.)

I'll just merge and we can tweak later.

@gvanrossum gvanrossum merged commit 73e189f into microsoft:main Jan 5, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants