CodeQL library for Python
Search

Predicate live_import_from_dot_in_init

Holds if f is an import of the form from .[...] import name and the enclosing scope is an init module

Import path

import python
predicate live_import_from_dot_in_init(ImportMemberNode f, EssaVariable var)