CodeQL library for Python
codeql/python-all 3.1.2-dev (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()