FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix autoimport raising AttributeError in some cases by douo · Pull Request #309 · python-lsp/python-lsp-server · GitHub

Fix autoimport raising AttributeError in some cases - #309

Merged
ccordoba12 merged 3 commits into
python-lsp:developfrom
douo:develop
Nov 30, 2022
Merged

Fix autoimport raising AttributeError in some cases#309
ccordoba12 merged 3 commits into
python-lsp:developfrom
douo:develop

Conversation

douo commented Nov 29, 2022
edited by ccordoba12
Loading

Copy link
Copy Markdown
Contributor

More detail in #307

Fixes #307

ccordoba12 added this to the v1.7.0 milestone Nov 29, 2022

ccordoba12 left a comment
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for your contribution @douo! To fix the linting error reported by Github actions, please add the following inline comment next to the definition of _should_insert:

def _should_insert(expr: tree.BaseNode, word_node: tree.Leaf) -> bool:  # pylint: disable=too-many-return-statements

Otherwise looks good to me.

ccordoba12 changed the title Fix #307 autoimport raise AttributeError in some case. Fix autoimport raising AttributeError in some cases Nov 29, 2022

douo commented Nov 30, 2022

Copy link
Copy Markdown
Contributor Author

Done, Thanks @ccordoba12.

ccordoba12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Please apply the suggestion I left below to please another of our linters.

Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>

ccordoba12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks a lot for your help @douo! We really appreciate it.

ccordoba12 merged commit 789c2a6 into python-lsp:develop Nov 30, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autoimport keep throwing exception when delete a line

2 participants


Back | FazBrowse Home | New Git URL