Codegen: patch customized stubs with QLdoc

This commit is contained in:
Paolo Tranquilli
2023-11-21 17:51:27 +01:00
parent d659709695
commit 30161b0f12
41 changed files with 292 additions and 30 deletions

View File

@@ -167,11 +167,16 @@ class Stub:
import_prefix: str
synth_accessors: List[SynthUnderlyingAccessor] = field(default_factory=list)
ql_internal: bool = False
doc: List[str] = field(default_factory=list)
@property
def has_synth_accessors(self) -> bool:
return bool(self.synth_accessors)
@property
def has_doc(self) -> bool:
return bool(self.doc) or self.ql_internal
@dataclass
class DbClasses: