Skip to content
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

Type of tuple is partially unknown #2140

Closed
Molkree opened this issue Dec 4, 2021 · 2 comments
Closed

Type of tuple is partially unknown #2140

Molkree opened this issue Dec 4, 2021 · 2 comments
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@Molkree
Copy link

Molkree commented Dec 4, 2021

Environment data

  • Language Server version: v2021.12.0
  • OS and version: Win10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.10

Expected behaviour

No errors.

Actual behaviour

image

Code Snippet / Additional information

nums: list[int] = [1, 2, 3]
max_product, min_product = nums[0], nums[0]
for x in nums[1:]:
    candidates = x, max_product * x, min_product * x
    min_product = min(candidates)
    max_product = max(candidates)

This behavior wasn't present in the v2021.11.2 version.

@erictraut
Copy link
Contributor

Thanks for reporting the problem. This will be fixed in the next release.

@erictraut erictraut added bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed triage labels Dec 4, 2021
@bschnurr
Copy link
Member

This issue has been fixed in version 2021.12.1, which we've just released. You can find the changelog here: CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

3 participants