@@ -218,7 +218,7 @@ def get_types_used_by(cls: ql.Class, is_impl: bool) -> typing.Iterable[str]:
218
218
for p in cls .properties :
219
219
yield p .type
220
220
if cls .root :
221
- yield cls .name # used in `getResolveStep` and `resolve`
221
+ yield cls .name # used in `getResolveStep` and `resolve`
222
222
223
223
224
224
def get_classes_used_by (cls : ql .Class , is_impl : bool ) -> typing .List [str ]:
@@ -325,6 +325,7 @@ def _get_stub(cls: schema.Class, base_import: str, generated_import_prefix: str)
325
325
return ql .Stub (name = cls .name , base_import = base_import , import_prefix = generated_import_prefix ,
326
326
doc = cls .doc , synth_accessors = accessors )
327
327
328
+
328
329
def _get_class_public (cls : schema .Class ) -> ql .ClassPublic :
329
330
return ql .ClassPublic (name = cls .name , doc = cls .doc , internal = "ql_internal" in cls .pragmas )
330
331
@@ -400,7 +401,8 @@ def generate(opts, renderer):
400
401
401
402
for c in classes .values ():
402
403
qll = out / c .path .with_suffix (".qll" )
403
- c .imports = [imports [t ] if t in imports else imports_impl [t ]+ "::Impl as " + t for t in get_classes_used_by (c , is_impl = True )]
404
+ c .imports = [imports [t ] if t in imports else imports_impl [t ] +
405
+ "::Impl as " + t for t in get_classes_used_by (c , is_impl = True )]
404
406
classes_used_by [c .name ] = get_classes_used_by (c , is_impl = False )
405
407
c .import_prefix = generated_import_prefix
406
408
renderer .render (c , qll )
@@ -411,7 +413,7 @@ def generate(opts, renderer):
411
413
stub_file = stub_out / path_impl
412
414
base_import = get_import (out / path , opts .root_dir )
413
415
stub = _get_stub (c , base_import , generated_import_prefix )
414
-
416
+
415
417
if not renderer .is_customized_stub (stub_file ):
416
418
renderer .render (stub , stub_file )
417
419
else :
0 commit comments