mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 19:12:31 +08:00
Update mypy to 1.18.1 (#14699)
This commit is contained in:
@@ -385,7 +385,7 @@ class PyCOMSTAT:
|
||||
|
||||
@final
|
||||
class PyCOORD:
|
||||
def __init__(self, X: int = ..., Y: int = ...) -> None: ...
|
||||
def __new__(self, X: int = ..., Y: int = ...) -> Self: ...
|
||||
X: int
|
||||
Y: int
|
||||
|
||||
@@ -573,7 +573,7 @@ class PyCTL_USAGE: ...
|
||||
|
||||
@final
|
||||
class PyConsoleScreenBuffer:
|
||||
def __init__(self, Handle) -> None: ...
|
||||
def __new__(self, Handle) -> Self: ...
|
||||
def SetConsoleActiveScreenBuffer(self) -> None: ...
|
||||
def GetConsoleCursorInfo(self) -> tuple[Incomplete, Incomplete]: ...
|
||||
def SetConsoleCursorInfo(self, Size, Visible) -> None: ...
|
||||
@@ -918,7 +918,7 @@ class PyHANDLE:
|
||||
|
||||
@final
|
||||
class PyHDESK:
|
||||
def __init__(self, handle) -> None: ...
|
||||
def __new__(self, handle) -> Self: ...
|
||||
def SetThreadDesktop(self) -> None: ...
|
||||
def EnumDesktopWindows(self) -> tuple[int, ...]: ...
|
||||
def SwitchDesktop(self) -> None: ...
|
||||
@@ -1056,7 +1056,7 @@ class PyHTHEME: ...
|
||||
|
||||
@final
|
||||
class PyHWINSTA:
|
||||
def __init__(self, handle) -> None: ...
|
||||
def __new__(self, handle) -> Self: ...
|
||||
def EnumDesktops(self) -> tuple[Incomplete, ...]: ...
|
||||
def SetProcessWindowStation(self) -> None: ...
|
||||
def CloseWindowStation(self) -> None: ...
|
||||
@@ -1069,7 +1069,7 @@ class PyIID: ...
|
||||
|
||||
@final
|
||||
class PyINPUT_RECORD:
|
||||
def __init__(self, EventType: int) -> None: ...
|
||||
def __new__(self, EventType: int) -> Self: ...
|
||||
EventType: int
|
||||
KeyDown: int | bool
|
||||
RepeatCount: int
|
||||
@@ -1628,7 +1628,7 @@ class PySIZE: ...
|
||||
|
||||
@final
|
||||
class PySMALL_RECT:
|
||||
def __init__(self, Left: int = ..., Top: int = ..., Right: int = ..., Bottom: int = ...) -> None: ...
|
||||
def __new__(self, Left: int = ..., Top: int = ..., Right: int = ..., Bottom: int = ...) -> Self: ...
|
||||
Left: int
|
||||
Top: int
|
||||
Right: int
|
||||
@@ -1651,7 +1651,7 @@ class PySTARTUPINFO:
|
||||
lpTitle: str
|
||||
|
||||
class PySecBuffer:
|
||||
def __init__(self, BufferSize, BufferType) -> None: ...
|
||||
def __new__(self, BufferSize, BufferType) -> Self: ...
|
||||
@property
|
||||
def BufferType(self): ...
|
||||
@property
|
||||
@@ -1663,7 +1663,7 @@ class PySecBuffer:
|
||||
def Clear(self) -> None: ...
|
||||
|
||||
class PySecBufferDesc:
|
||||
def __init__(self, Version=...) -> None: ...
|
||||
def __new__(self, Version=...) -> Self: ...
|
||||
Version: Incomplete
|
||||
Buffer: Incomplete
|
||||
def append(self, buffer, /) -> None: ...
|
||||
@@ -4747,9 +4747,9 @@ class PyPROPERTYKEY: ...
|
||||
class PyPROPVARIANT:
|
||||
@overload
|
||||
@deprecated("Support for passing two ints to create a 64-bit value is deprecated; pass a single int instead")
|
||||
def __init__(self, Value: tuple[int, int], Type=...) -> None: ...
|
||||
def __new__(self, Value: tuple[int, int], Type=...) -> Self: ...
|
||||
@overload
|
||||
def __init__(self, Value, Type=...) -> None: ...
|
||||
def __new__(self, Value, Type=...) -> Self: ...
|
||||
@property
|
||||
def vt(self): ...
|
||||
def GetValue(self): ...
|
||||
|
||||
@@ -17,7 +17,7 @@ class error(Exception):
|
||||
class com_error(Exception): ...
|
||||
|
||||
class HANDLEType:
|
||||
def __init__(self, *args: Never) -> NoReturn: ...
|
||||
def __new__(self, *args: Never) -> NoReturn: ...
|
||||
@property
|
||||
def handle(self) -> int: ...
|
||||
def Close(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user