-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Partially unknown" message in for loop. #9496
Comments
Could someone from the pylance team please transfer this to the pyright project? Thanks! @sindzicat, I presume that you're using "strict" type checking mode? The Based on your description, this sounds like a bug, but I'm unable to repro it with the code sample you've provided. Could you confirm that you're able to repro the problem with a new project and a new source file with only the contents of the code above? Are members of the pylance team able to repro this? |
@erictraut, yes, I use "strict" type checking mode. All settings I modified for Pylance:
|
I'm not able to repro the problem. Here it is in pyright playground. Could you confirm that you're able to repro the problem with a new project and a new source file with only the contents of the code above? |
@erictraut, I used pre-release version of Pylance. I switched back to production version of Pylance, but I still see this error. I see that pyright works correctly in playground. How can I check, what pyright version is used in Pylance? Thanks! |
If you enable strict mode but disable |
Hello!
When I type:
I get an error message for
el
variable:Then I changed my code slightly, replaced
[*arr1, *arr2]
witharr1 + arr2
. The error message gone. Modified code, that works:It seems to me, I found a bug.
The text was updated successfully, but these errors were encountered: