fix client.GetClassObject
type annotations and add tests
#458
Labels
good first issue
Good for newcomers
client.GetClassObject
type annotations and add tests
#458
Remaining tasks for #456.
comtypes/comtypes/client/__init__.py
Lines 200 to 222 in 18dc2cc
if TYPE_CHECKING
bridges, like change type hints incomtypes/__init__.py
for each function that needs@overload
to inline annotations #453.comtypes/__init__.py
for each function that needs@overload
to inline annotations #453.TestCase
intest/test_client.py
that callclient.GetClassObject
.unittest.mock
whenever possible.Type[_T_IUnknown]
forinterface
, the return value will be analyzed as_T_IUnknown
by static type checkers.black
(the maximum number of characters per line is 88, which is the default).I hope someone who actually uses
client.GetClassObject
will PR along with the introduction of use cases, because I had not use this function.The text was updated successfully, but these errors were encountered: