fix IPersist.GetClassID
to TYPE_CHECKING
only method from Callable
annotation
#450
Labels
IPersist.GetClassID
to TYPE_CHECKING
only method from Callable
annotation
#450
THIS IS FOR
drop_py2
PLAN! Please see #392.Since
Callable
cannot tell the IDE the docstring or argument names, it should be changed to use the normal method writing style.comtypes/comtypes/__init__.py
Lines 853 to 862 in 9238cc7
A specification of the derived classes of
IUnknown
is below;If the names of attributes defined from
_methods_
by_cominterface_meta
(and_memberspec
stuffs) are duplicated in the names of already defined attributes, the names of the methods defined by the metaclasses will be prefixed with_
.comtypes/comtypes/__init__.py
Lines 550 to 552 in 9238cc7
comtypes/comtypes/__init__.py
Lines 562 to 563 in 9238cc7
So the following could be implemented as a "normal" Python method;
But the
IPersist.GetClassID
is currently untested, and I am not sure that changing it will not result in unexpected regressions.I will define it once under the
if TYPE_CHEKING
bridge, knowing thatinspect
will not work well enough in runtime.The text was updated successfully, but these errors were encountered: