8000 More pywin32 stub completion by Avasam · Pull Request #9308 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

More pywin32 stub completion #9308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
Avasam committed Dec 3, 2022
commit 1c444a56aee514fbb20005da3cfd23919545d00c
2 changes: 1 addition & 1 deletion stubs/pywin32/_win32typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ class PyHH_WINTYPE:
class PyHINTERNET: ...

class PyHKEY:
def Close(): ...
def Close(self): ...

class PyHTHEME: ...

Expand Down
2 changes: 1 addition & 1 deletion stubs/pywin32/win32/lib/pywintypes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class error(Exception):
def __init__(self, winerror: int, funcname: str, strerror: str): ...

class com_error(Exception): ...
class UnicodeType: ...
class UnicodeType(str): ...

class TimeType(datetime):
Format = datetime.strftime
Expand Down
2 changes: 1 addition & 1 deletion stubs/pywin32/win32/win32api.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from _typeshed import Incomplete, ReadableBuffer
from typing import Iterable
from collections import Iterable
from typing_extensions import TypedDict

import _win32typing
Expand Down
2 changes: 1 addition & 1 deletion stubs/pywin32/win32/win32service.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing import Iterable
from collections.abc import Iterable

import _win32typing
from win32.lib.pywintypes import error as error
Expand Down
10 changes: 4 additions & 6 deletions stubs/pywin32/win32com/server/policy.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,19 @@ def CreateInstance(clsid, reqIID): ...

class BasicWrapPolicy(ABC):
def __init__(self, object) -> None: ...
def _InvokeEx_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider) -> tuple: ...
def _InvokeEx_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider) -> tuple[Incomplete]: ...
@abstractmethod
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider) -> tuple: ...
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider) -> tuple[Incomplete]: ...

class MappedWrapPolicy(BasicWrapPolicy):
_dispid_to_func_: dict[int, str]
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider) -> tuple: ...

test = MappedWrapPolicy("")
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider) -> tuple[Incomplete]: ...

class DesignatedWrapPolicy(MappedWrapPolicy): ...
class EventHandlerPolicy(DesignatedWrapPolicy): ...

class DynamicPolicy(BasicWrapPolicy):
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider) -> tuple: ...
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider) -> tuple[Incomplete]: ...

DefaultPolicy = DesignatedWrapPolicy

Expand Down
0