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 hint inlays inaccurate for big integer literals #3355

Closed
diceroll123 opened this issue Sep 17, 2022 · 1 comment
Closed

Type hint inlays inaccurate for big integer literals #3355

diceroll123 opened this issue Sep 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@diceroll123
Copy link

Environment data

  • Language Server version: 2022.9.11
  • OS and version: darwin x64
  • Python version (and distribution if applicable, e.g. Anaconda):
  • python.analysis.indexing: null
  • python.analysis.typeCheckingMode: strict

Code Snippet

x = 123670029844611072
y = 228576013746044928
z = 603377803525750794

Expected behavior

Type inlays have the exact value as the integers

Actual behavior

Type inlays sometimes have the exact value as the integers


It also occurs when mousing-over the variable. I figure it's some Javascript limitation with rounding. Here's a quick visual.

image

@judej judej added the needs investigation Could be an issue - needs investigation label Sep 19, 2022
@bschnurr bschnurr 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 needs investigation Could be an issue - needs investigation labels Sep 20, 2022
@debonte
Copy link
Contributor

debonte commented Sep 22, 2022

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

@debonte debonte closed this as completed Sep 22, 2022
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

4 participants