Upgrade black version (#7089)

This commit is contained in:
Shantanu
2022-01-30 16:27:06 -08:00
committed by GitHub
parent 9854926289
commit b88a6f19cd
173 changed files with 496 additions and 2 deletions

View File

@@ -7,12 +7,14 @@ from typing import Any
if sys.platform == "win32":
def format_system_message(errno: int) -> str | None: ...
class WindowsError(builtins.WindowsError):
def __init__(self, value: int | None = ...) -> None: ...
@property
def message(self) -> str: ...
@property
def code(self) -> int: ...
def handle_nonzero_success(result: int) -> None: ...
GMEM_MOVEABLE: int
GlobalAlloc: Any
@@ -23,6 +25,7 @@ if sys.platform == "win32":
MapViewOfFile: Any
UnmapViewOfFile: Any
RtlMoveMemory: Any
class MemoryMap:
name: str
length: int
@@ -61,15 +64,20 @@ if sys.platform == "win32":
POLICY_READ: int
POLICY_WRITE: int
POLICY_EXECUTE: int
class TokenAccess:
TOKEN_QUERY: int
class TokenInformationClass:
TokenUser: int
class TOKEN_USER(ctypes.Structure):
num: int
class SECURITY_DESCRIPTOR(ctypes.Structure):
SECURITY_DESCRIPTOR_CONTROL: Any
REVISION: int
class SECURITY_ATTRIBUTES(ctypes.Structure):
nLength: int
lpSecurityDescriptor: Any
@@ -78,6 +86,7 @@ if sys.platform == "win32":
def descriptor(self) -> Any: ...
@descriptor.setter
def descriptor(self, value: Any) -> None: ...
def GetTokenInformation(token: Any, information_class: Any) -> Any: ...
def OpenProcessToken(proc_handle: Any, access: Any) -> Any: ...
def get_current_user() -> TOKEN_USER: ...

View File

@@ -4,7 +4,9 @@ import sys
if sys.platform == "win32":
win32con_WM_COPYDATA: int
def can_talk_to_agent(): ...
class COPYDATASTRUCT(ctypes.Structure): ...
class PageantConnection:
def __init__(self) -> None: ...
def send(self, data: bytes) -> None: ...