зеркало из https://github.com/github/codeql.git
Update misc/codegen/lib/ql.py
Co-authored-by: Paolo Tranquilli <redsun82@github.com>
This commit is contained in:
Родитель
8d68bdf4d6
Коммит
964e97c842
|
@ -115,9 +115,9 @@ class Class:
|
|||
hideable: bool = False
|
||||
|
||||
def __post_init__(self):
|
||||
self.bases = [Base(str(b), str(prev)) for b, prev in zip(self.bases, itertools.chain([""], self.bases))]
|
||||
self.bases_impl = [Base(str(b), str(prev)) for b, prev in zip(
|
||||
self.bases_impl, itertools.chain([""], self.bases_impl))]
|
||||
def get_bases(bases): return [Base(str(b), str(prev)) for b, prev in zip(bases, itertools.chain([""], bases))]
|
||||
self.bases = get_bases(self.bases)
|
||||
self.bases_impl = get_bases(self.bases_impl)
|
||||
if self.properties:
|
||||
self.properties[0].first = True
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче