Fix various TypeAlias issues (#8248)

This commit is contained in:
Alex Waygood
2022-07-07 13:18:44 +01:00
committed by GitHub
parent 850bc78a45
commit 9ccf4589a0
8 changed files with 54 additions and 54 deletions

View File

@@ -242,7 +242,7 @@ class Unwinder:
def inferiors() -> tuple[Inferior, ...]: ...
def selected_inferior() -> Inferior: ...
BufferType: TypeAlias = _typeshed.ReadableBuffer
_BufferType: TypeAlias = _typeshed.ReadableBuffer
class Inferior:
num: int
@@ -255,8 +255,8 @@ class Inferior:
def threads(self) -> tuple[InferiorThread, ...]: ...
def architecture(self) -> Architecture: ...
def read_memory(self, address: _ValueOrInt, length: int) -> memoryview: ...
def write_memory(self, address: _ValueOrInt, buffer: BufferType, length: int = ...) -> memoryview: ...
def search_memory(self, address: _ValueOrInt, length: int, pattern: BufferType) -> int | None: ...
def write_memory(self, address: _ValueOrInt, buffer: _BufferType, length: int = ...) -> memoryview: ...
def search_memory(self, address: _ValueOrInt, length: int, pattern: _BufferType) -> int | None: ...
def thread_from_handle(self, handle: Value) -> InferiorThread: ...
# Threads