From 994505b8be73a4debb7f0f7b9b5f42007cd633a6 Mon Sep 17 00:00:00 2001 From: Gulshan Singh Date: Wed, 6 Mar 2024 00:46:26 -0800 Subject: [PATCH] Update types-gdb version (#2064) * Update dev-requirements * Remove type ignore comment for gdb.VERSION --- dev-requirements.txt | 2 +- pwndbg/gdblib/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 7d11d3f6c..a797f680b 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -8,7 +8,7 @@ rich==13.7.1 ruff==0.3.0 testresources==2.0.1 tomli==2.0.1 -types-gdb==12.1.4.20240113 +types-gdb==12.1.4.20240305 types-psutil==5.9.5.20240205 types-Pygments==2.17.0.20240106 types-requests==2.31.0.20240218 diff --git a/pwndbg/gdblib/__init__.py b/pwndbg/gdblib/__init__.py index b033c2871..c24ab579c 100644 --- a/pwndbg/gdblib/__init__.py +++ b/pwndbg/gdblib/__init__.py @@ -17,7 +17,7 @@ regs = None __all__ = ["ctypes", "memory", "typeinfo"] # Export parsed GDB version -gdb_version = tuple(map(int, re.search(r"(\d+)[^\d]+(\d+)", gdb.VERSION).groups())) # type: ignore[attr-defined] +gdb_version = tuple(map(int, re.search(r"(\d+)[^\d]+(\d+)", gdb.VERSION).groups())) # TODO: should the imports above be moved here?