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

Handling list merge in _utils.merge_dicts(). #38

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

GaetanLepage
Copy link
Contributor

If a list value is present in both dicts, they are merged (with duplicates removed).

@ccordoba12
Copy link
Member

What problem does this fix? And, could you add a test case for it?

@GaetanLepage
Copy link
Contributor Author

What problem does this fix? And, could you add a test case for it?

In practice, I faced this edge case while having flake8 ignores both in my neovim config (LS client) and others in my project flake8 config (.flake8).
The behavior was that the project ignores were overridden by the project ones.
Thanks to this fix, they are now merged in a single list of ignores (without duplicates).

@ccordoba12 ccordoba12 added this to the v1.1.0 milestone Jun 3, 2021
@ccordoba12
Copy link
Member

Ok, I think it's fine. Merging then.

@ccordoba12 ccordoba12 merged commit 494e98b into python-lsp:develop Jun 3, 2021
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.

2 participants