Skip to content

Is this an issue with PySide6 or Pyright? #9770

Answered by erictraut
mmerlo asked this question in Q&A
Discussion options

You must be logged in to vote

Pyside6 6.8.0 wouldn't install for me. It appears it's not compatible with Python 3.13. I was able to get it to install by reverting to an older version of Python.

The Pyside6 6.8.0 library defines the Slots class in a way that obscures all type information if you apply the class as a decorator. That's why you're not seeing an type error here. This isn't a bug in pyright; it's arguably a bug in the library's type annotations. And it appears that it has been fixed in a later version (6.8.1.1).

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mmerlo
Comment options

@erictraut
Comment options

Answer selected by mmerlo
@mmerlo
Comment options

@erictraut
Comment options

@mmerlo
Comment options

@mmerlo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants