mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 01:38:40 +08:00
Update pywin32 to mypy 0.990 (#9124)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user