Skip to content

Commit c0f4c67

Browse files
committed
update again
1 parent d21a4f0 commit c0f4c67

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

stubs/pywin32/@tests/stubtest_allowlist_win32.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ win32com.client.tlbrowse
1010
# Utilities to generate python bindings
1111
win32com.client.CLSIDToClass
1212
win32com.client.connect
13+
# Error: _GoodDispatchTypes is not a Union or subclass of tuple
14+
win32com.client.dynamic._GoodDispatchTypes
1315
win32com.client.gencache.*
1416
win32com.client.genpy
1517
win32com.client.makepy

stubs/pywin32/win32com/client/dynamic.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def debug_attr_print(*args: object) -> None: ...
3131
PyIDispatchType = _win32typing.PyIDispatch
3232
PyIUnknownType = _win32typing.PyIUnknown
3333

34-
_GoodDispatchTypes: TypeAlias = str | IIDType
34+
_GoodDispatchTypes: TypeAlias = tuple[type[str], type[IIDType]]
3535

3636
@overload
3737
def Dispatch(

stubs/pywin32/win32com/server/policy.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ class DynamicPolicy(BasicWrapPolicy):
3333

3434
DefaultPolicy = DesignatedWrapPolicy
3535

36+
# Imports an arbitrary object by it's fully-qualified name.
3637
def resolve_func(spec: str) -> Any: ...
37-
def call_func(spec: str, *args) -> Any: ...
38+
39+
# Imports and calls an arbitrary callable by it's fully-qualified name.
40+
def call_func(spec: str, *args: Any) -> Any: ...
3841

3942
DISPATCH_METHOD: int
4043
DISPATCH_PROPERTYGET: int

0 commit comments

Comments
 (0)