Python import alias #2992
Labels
alpha
Relates to an experimental feature
feature:matching
stale
needs prioritization; label applied by stalebot
user:external
requested by someone outside of r2c
Describe the bug
Not sure whether it is a bug, intended behavior, or should be a feature request.
For the pattern
import $X.function
,$X
will only match one level of modules.For example, it matches
import x.function
but notimport x.y.function
.In contrast, for the pattern
$X.function(...)
,$X
would match multiple level of modules.For example,
#1771 seems to be a relevant ticket.
To Reproduce
https://semgrep.dev/s/yz3A
Expected behavior
A way to match any level of modules.
The text was updated successfully, but these errors were encountered: