Skip to content

Commit e39e52e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent d89177c commit e39e52e

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

stubs/gdb/gdb/__init__.pyi

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,19 @@
22
# reading the documentation
33
# (https://sourceware.org/gdb/onlinedocs/gdb/Python-API.html).
44

5+
import _typeshed
56
import threading
67
from collections.abc import Callable, Iterator, Mapping, Sequence
78
from contextlib import AbstractContextManager
8-
from typing import (
9-
Any,
10-
Final,
11-
Generic,
12-
Literal,
13-
Protocol,
14-
TypeVar,
15-
final,
16-
overload,
17-
type_check_only,
18-
)
9+
from typing import Any, Final, Generic, Literal, Protocol, TypeVar, final, overload, type_check_only
10+
from typing_extensions import TypeAlias, deprecated
1911

20-
import _typeshed
2112
import gdb.FrameDecorator
2213
import gdb.types
2314
from gdb.missing_debug import MissingDebugHandler
24-
from typing_extensions import TypeAlias, deprecated
2515

2616
# The following submodules are automatically imported
27-
from . import events as events
28-
from . import printing as printing
29-
from . import prompt as prompt
30-
from . import types as types
17+
from . import events as events, printing as printing, prompt as prompt, types as types
3118

3219
# Basic
3320

@@ -61,7 +48,6 @@ def convenience_variable(name: str, /) -> Value | None: ...
6148
def set_convenience_variable(name: str, value: _ValueOrNative | None, /) -> None: ...
6249
def parse_and_eval(expression: str, global_context: bool = False) -> Value: ...
6350
def format_address(address: int, progspace: Progspace = ..., architecture: Architecture = ...): ...
64-
6551
def find_pc_line(pc: int | Value) -> Symtab_and_line: ...
6652
def post_event(event: Callable[[], object], /) -> None: ...
6753
def write(string: str, stream: int = ...) -> None: ...
@@ -337,7 +323,6 @@ class Inferior:
337323
def arguments(self) -> str | None: ...
338324
@arguments.setter
339325
def arguments(self, args: str | Sequence[str]) -> None: ...
340-
341326
def is_valid(self) -> bool: ...
342327
def threads(self) -> tuple[InferiorThread, ...]: ...
343328
def architecture(self) -> Architecture: ...
@@ -959,6 +944,7 @@ class ExitedEvent(Event):
959944
inferior: Inferior
960945

961946
class ThreadExitedEvent(Event): ...
947+
962948
class StopEvent(ThreadEvent):
963949
details: dict[str, object]
964950

@@ -1014,6 +1000,7 @@ class ConnectionEvent(Event):
10141000
connection: TargetConnection
10151001

10161002
class ExecutableChangedEvent(Event): ...
1003+
10171004
class TuiEnabledEvent(Event):
10181005
enabled: bool
10191006

@@ -1027,7 +1014,6 @@ class EventRegistry(Generic[_ET]):
10271014
class ValuePrinter: ...
10281015

10291016
def blocked_signals(): ...
1030-
10311017
def notify_mi(name: str, data: dict[str, object] | None = None): ...
10321018
def interrupt(): ...
10331019
def execute_mi(command: str, *args: str) -> dict[str, object]: ...

stubs/gdb/gdb/disassembler.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import enum
2-
from typing import Protocol, Sequence, final
2+
from collections.abc import Sequence
3+
from typing import Protocol, final
34

45
import gdb
56
from gdb import Architecture, Progspace

0 commit comments

Comments
 (0)