MCPcopy Create free account
hub / github.com/enthought/comtypes / Constant

Method Constant

comtypes/tools/codegenerator/codegenerator.py:515–519  ·  view source on GitHub ↗
(self, tp: typedesc.Constant)

Source from the content-addressed store, hash-verified

513 self.imports.add(modname)
514
515 def Constant(self, tp: typedesc.Constant) -> None:
516 with self.adjust_blank("variable") as ofi:
517 type_name = self._to_type_name(tp.typ)
518 print(f"{tp.name} = {tp.value!r} # Constant {type_name}", file=ofi)
519 self.names.add(tp.name)
520
521 def SAFEARRAYType(self, sa: typedesc.SAFEARRAYType) -> None:
522 self.generate(sa.typ)

Callers 1

ParseModuleMethod · 0.80

Calls 2

adjust_blankMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected