Skip to content

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