mirror of
https://github.com/github/codeql.git
synced 2026-04-16 12:34:02 +02:00
Python: Add QL support for lazy imports
Adds a new `isLazy` predicate to the relevant classes, and adds the relevant dbscheme (and up/downgrade) changes. On upgrades we do nothing, and on downgrades we remove the `is_lazy` bits.
This commit is contained in:
@@ -334,9 +334,11 @@ IfExp.field('body', expr, 'if-true expression')
|
||||
IfExp.field('orelse', expr, 'if-false expression')
|
||||
|
||||
Import.field('names', alias_list, 'alias list')
|
||||
Import.field('is_lazy', bool_, 'lazy')
|
||||
|
||||
ImportFrom.set_name('ImportStar')
|
||||
ImportFrom.field('module', expr)
|
||||
ImportFrom.field('is_lazy', bool_, 'lazy')
|
||||
|
||||
ImportMember.field('module', expr)
|
||||
ImportMember.field('name', string)
|
||||
|
||||
Reference in New Issue
Block a user