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

Member predicate ImportExpr::isRelative

Whether this import is relative, that is not absolute. See https://www.python.org/dev/peps/pep-0328/

predicate isRelative()