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

Method param_flags

comtypes/tools/tlbparser.py:434–445  ·  view source on GitHub ↗
(self, flags: int)

Source from the content-addressed store, hash-verified

432 return [NAMES[bit] for bit in NAMES if bit & flags]
433
434 def param_flags(self, flags: int) -> list[str]:
435 # map PARAMFLAGS values to idl attributes
436 NAMES = {
437 typeinfo.PARAMFLAG_FIN: "in",
438 typeinfo.PARAMFLAG_FOUT: "out",
439 typeinfo.PARAMFLAG_FLCID: "lcid",
440 typeinfo.PARAMFLAG_FRETVAL: "retval",
441 typeinfo.PARAMFLAG_FOPT: "optional",
442 # typeinfo.PARAMFLAG_FHASDEFAULT: "",
443 # typeinfo.PARAMFLAG_FHASCUSTDATA: "",
444 }
445 return [NAMES[bit] for bit in NAMES if bit & flags]
446
447 def coclass_type_flags(self, flags: int) -> list[str]:
448 # map TYPEFLAGS values to idl attributes

Callers 2

ParseInterfaceMethod · 0.95
ParseDispatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected