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

Run Pyright for all workflows #18268

Merged
merged 15 commits into from
Jan 10, 2022

Conversation

kimadeline
Copy link

Closes #18267

@kimadeline kimadeline added the no-changelog No news entry required label Jan 10, 2022
@kimadeline kimadeline self-assigned this Jan 10, 2022
Comment on lines +58 to +59
# Using getattr instead of node.decorator_list or pyright will complain about an unknown member.
line_end -= len(getattr(node, "decorator_list"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you report this as a bug on Pylance? That hasattr() check should cause the entire clause to mark the node object has having the decorator_list as an attribute.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kimadeline kimadeline merged commit 2883012 into microsoft:main Jan 10, 2022
@kimadeline kimadeline deleted the 18267-pyright-workflows branch January 10, 2022 22:35
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
* Run Pyright for all workflows

* Rename job

* Remove special directory

* analyze types only in pythonFiles

* Install requirements

* Fix indentation

* Indentation, again

* Try excluding lib form pyright

* install debugger requirements, tweak extraPaths

* Remove debugpy install

* Exclude more files

* Add more to pyproject.toml, install test reqs

* Fix normalizeSelection

* Move from exclude to ignore

* Update build workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Pyright type checking to all GH workflows
2 participants