Instagram / Instagram/LibCST

QualifiedNameProvider does not provide qualified name for keyword arguments.

Open
#520 2 comments 0 reactions 0 assignees View on GitHub
bug codemod
Dominant language
Python
Stars
1.9k
Forks
229
PR merge metrics
No merged PRs in 30d

Description

for a function like:

```python
def fun(arg):
pass
```

the fully qualified name for `arg` will be `fun..arg`, but for any call to the function that chooses to call it using a keyword argument:

```python
fun(arg=1)
```

no metadata is found for `arg`. It seems like the necessary scope information would be there, but I suspect the visitor used by the QN provider does not traverse far enough into the arg node to hit arg.keyword, maybe?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.