Skip to content

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