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

Method func_flags

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

Source from the content-addressed store, hash-verified

413 return NAMES[invkind]
414
415 def func_flags(self, flags: int) -> list[str]:
416 # map FUNCFLAGS values to idl attributes
417 NAMES = {
418 typeinfo.FUNCFLAG_FRESTRICTED: "restricted",
419 typeinfo.FUNCFLAG_FSOURCE: "source",
420 typeinfo.FUNCFLAG_FBINDABLE: "bindable",
421 typeinfo.FUNCFLAG_FREQUESTEDIT: "requestedit",
422 typeinfo.FUNCFLAG_FDISPLAYBIND: "displaybind",
423 typeinfo.FUNCFLAG_FDEFAULTBIND: "defaultbind",
424 typeinfo.FUNCFLAG_FHIDDEN: "hidden",
425 typeinfo.FUNCFLAG_FUSESGETLASTERROR: "usesgetlasterror",
426 typeinfo.FUNCFLAG_FDEFAULTCOLLELEM: "defaultcollelem",
427 typeinfo.FUNCFLAG_FUIDEFAULT: "uidefault",
428 typeinfo.FUNCFLAG_FNONBROWSABLE: "nonbrowsable",
429 # typeinfo.FUNCFLAG_FREPLACEABLE: "???",
430 typeinfo.FUNCFLAG_FIMMEDIATEBIND: "immediatebind",
431 }
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

Callers 2

ParseInterfaceMethod · 0.95
ParseDispatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected