Skip to content

Commit fc1af20

Browse files
committed
add suggestions and try to remove dynamic entry
1 parent 9cbb0e6 commit fc1af20

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

stubs/pywin32/@tests/stubtest_allowlist_win32.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ win32com.client.tlbrowse
1111
win32com.client.CLSIDToClass
1212
win32com.client.connect
1313
# "dynamic.CDipatch" is necessary for mypy to not throw AssertionError
14-
win32com.client.dynamic.*
1514
win32com.client.gencache.*
1615
win32com.client.genpy
1716
win32com.client.makepy

stubs/pywin32/win32com/server/policy.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from _typeshed import Incomplete
22
from abc import ABC, abstractmethod
3-
from typing import Final
3+
from typing import Any, Final
44

55
import _win32typing
66

7+
__author__: Final[str]
78
S_OK: Final = 0
89
IDispatchType: Incomplete
910
IUnknownType: Incomplete
@@ -32,8 +33,8 @@ class DynamicPolicy(BasicWrapPolicy):
3233

3334
DefaultPolicy = DesignatedWrapPolicy
3435

35-
def resolve_func(spec: str): ...
36-
def call_func(spec: str, *args): ...
36+
def resolve_func(spec: str) -> Any: ...
37+
def call_func(spec: str, *args) -> Any: ...
3738

3839
DISPATCH_METHOD: int
3940
DISPATCH_PROPERTYGET: int

stubs/pywin32/win32com/server/util.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from _typeshed import Incomplete
2+
from collections.abc import Iterable
23
from typing import Literal
34

45
import _win32typing
@@ -17,7 +18,7 @@ class ListEnumerator:
1718
def Clone(self): ...
1819

1920
class ListEnumeratorGateway(ListEnumerator):
20-
def Next(self, count: int) -> map[Incomplete]: ...
21+
def Next(self, count: int) -> Iterable[Incomplete]: ...
2122

2223
def NewEnum(
2324
seq,

stubs/pywin32/win32com/universal.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class Arg:
2323
inOut: Incomplete
2424
default: Incomplete
2525
clsid: Incomplete
26-
arg_info: Incomplete
2726
size: Incomplete
2827
offset: int
2928
def __init__(self, arg_info, name=None) -> None: ...

0 commit comments

Comments
 (0)