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

No type errors shown in interactive windows and unsaved notebooks #3412

Closed
debonte opened this issue Sep 30, 2022 · 1 comment
Closed

No type errors shown in interactive windows and unsaved notebooks #3412

debonte opened this issue Sep 30, 2022 · 1 comment
Assignees
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version notebook-regression

Comments

@debonte
Copy link
Contributor

debonte commented Sep 30, 2022

Environment data

  • Language Server version: 2022.9.41
  • OS and version: Windows 11
  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.0a7

Repro Steps

  1. Run "Jupyter: Create Interactive Window" or "Create: New Jupyter Notebook" from command palette
  2. Create cell with:
def foo(x: int):
    return x

foo("str")

Expected behavior

Error on "str":

Argument of type "Literal['str']" cannot be assigned to parameter "x" of type "int" in function "foo"
"Literal['str']" is incompatible with "int"Pylance[reportGeneralTypeIssues]

image

Actual behavior

image

@debonte debonte self-assigned this Sep 30, 2022
@debonte debonte added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Oct 18, 2022
@heejaechang
Copy link
Contributor

This issue has been fixed in prerelease version 2022.10.31, 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
fixed in next version (main) A fix has been implemented and will appear in an upcoming version notebook-regression
Projects
None yet
Development

No branches or pull requests

2 participants