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

Pylance does not report expected error "Argument missing" #1104

Closed
pasunx opened this issue Mar 30, 2021 · 2 comments
Closed

Pylance does not report expected error "Argument missing" #1104

pasunx opened this issue Mar 30, 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

@pasunx
Copy link

pasunx commented Mar 30, 2021

Environment data

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

Code Snippet / Additional information

class A:

    def __init__(self, x: str, *, y: str) -> None: ...

class B:

    def __init__(self, a: A) -> None: ...

def C(b: B) -> None: ...

B(A(y = "Y")) # error: Argument missing for parameter "x" Pylance (reportGeneralTypeIssues)

C(B(A(y = "Y"))) # no error

image

@erictraut
Copy link
Contributor

This will be fixed in the next release of pylance. Thanks for the bug report.

@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 Mar 30, 2021
@jakebailey
Copy link
Member

This issue has been fixed in version 2021.3.4, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202134-31-march-2021

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