CodeQL library for Python
codeql/python-all 2.1.1 (changelog, source)
Search

Predicate import_from_dot_in_init

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

Import path

import python
predicate import_from_dot_in_init(ImportExprNode f)