pylint-dev/pylint
Ver no GitHubUse inference to determine if **kwargs is missing a named parameter
Open
#8.785 aberto em 18 de jun. de 2023
False Negative 🦋Good first issueHacktoberfestNeeds PR
Métricas do repositório
- Stars
- (4.978 stars)
- Métricas de merge de PR
- (Mesclagem média 58d 21h) (63 fundiu PRs em 30d)
Description
I would expect these two lines to raise the same set of messages. We don't use inference to analyze whether **kwargs contains the missing named parameter x. We could.
import copy
import os
copy.copy(**{"y": os.environ}) # [unexpected-keyword-arg]
copy.copy(y=os.environ) # [no-value-for-parameter, unexpected-keyword-arg]
False negative for no-value-for-parameter.