mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 16:44:25 +08:00
Fix various TypeAlias issues (#8248)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user