You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
types-setuptools 71.1.0.20240726 fails to typecheck with pyright #12436
This seems to behave as expected. You are using very strict settings that warn you if you are using stubs with incomplete annotations. Using those settings will mean that you have to deal with occasional issues like this; you can fix them by either ignoring the error in your code with the appropriate comment, or contributing improved stubs.
i don't really understand why this issue was closed. i understand that the solution here is that improved stubs are needed, but... that's why i opened the issue - the stubs in this repository don't work and need to be fixed, as far as i can tell? or is there somewhere else this should be reported?
The stubs work fine, but pyright is warning you that they are incomplete, like many other stubs in typeshed. We don't consider that a bug, but we accept PRs adding annotations to unannotated functions.
Activity
JelleZijlstra commentedon Jul 26, 2024
This seems to behave as expected. You are using very strict settings that warn you if you are using stubs with incomplete annotations. Using those settings will mean that you have to deal with occasional issues like this; you can fix them by either ignoring the error in your code with the appropriate comment, or contributing improved stubs.
doy-materialize commentedon Jul 26, 2024
i don't really understand why this issue was closed. i understand that the solution here is that improved stubs are needed, but... that's why i opened the issue - the stubs in this repository don't work and need to be fixed, as far as i can tell? or is there somewhere else this should be reported?
JelleZijlstra commentedon Jul 26, 2024
The stubs work fine, but pyright is warning you that they are incomplete, like many other stubs in typeshed. We don't consider that a bug, but we accept PRs adding annotations to unannotated functions.