Update pywin32 to mypy 0.990 (#9124)

This commit is contained in:
Samuel T
2022-11-09 22:20:56 -05:00
committed by GitHub
parent a74acc8225
commit 0ac98f6b80
5 changed files with 34 additions and 32 deletions
+6 -2
View File
@@ -1,6 +1,7 @@
# Can't generate with stubgen because:
# "KeyError: 'pywintypes'"
from _typeshed import Incomplete
from datetime import datetime
from typing_extensions import Literal
import _win32typing
@@ -8,6 +9,9 @@ import _win32typing
class error(Exception): ...
class com_error(Exception): ...
class TimeType(datetime):
Format = datetime.strftime
def DosDateTimeToTime() -> _win32typing.PyTime: ...
def Unicode() -> str: ...
def UnicodeFromRaw(_str: str) -> str: ...
@@ -23,8 +27,8 @@ def SECURITY_DESCRIPTOR() -> _win32typing.PySECURITY_DESCRIPTOR: ...
def HANDLE() -> int: ...
def HKEY() -> _win32typing.PyHKEY: ...
def WAVEFORMATEX() -> _win32typing.PyWAVEFORMATEX: ...
def TimeStamp(*args, **kwargs): ... # incomplete
FALSE: Literal[False]
TRUE: Literal[True]
def TimeStamp(*args, **kwargs): ... # incomplete
WAVE_FORMAT_PCM: int
+5
View File
@@ -1 +1,6 @@
from win32.win32gui import *
def GetConsoleWindow() -> int: ...
# Actually returns a list of int|tuple, but lists don't support positional types
def GetWindowRgnBox(__hWnd: int) -> tuple[int, tuple[int, int, int, int]]: ...