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

The "Create Stub Files" command omits typed+valued class attributes #490

Closed
psam44 opened this issue Oct 14, 2020 · 2 comments
Closed

The "Create Stub Files" command omits typed+valued class attributes #490

psam44 opened this issue Oct 14, 2020 · 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

@psam44
Copy link

psam44 commented Oct 14, 2020

Environment data

Pylance 2020.10.0
Python 2020.9.114305

Code sample:

class Foo(models.Model):
    valueOnly = 's'
    typeOnly: str
    valueAndType: str = 's'

The Create Stub Files Quick Fix generates only:

class Foo(models.Model):
    valueOnly = ...
    typeOnly: str

Why the following property is not produced?

    valueAndType: str = ...
@erictraut
Copy link
Contributor

Thanks for the bug report. 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 labels Oct 15, 2020
@github-actions github-actions bot removed the triage label Oct 15, 2020
@jakebailey
Copy link
Member

This issue has been fixed in version 2020.10.2, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#2020102-21-october-2020

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