nxgdb: fix style issue

Fix style issue reported after upgrading flake8 to 7.2.0

1 file would be left unchanged.
/home/nuttx/tools/pynuttx/nxgdb/utils.py:237:5: F824  is unused: name is never assigned in scope
    global g_type_cache
    ^
/home/nuttx/tools/pynuttx/nxgdb/utils.py:294:5: F824  is unused: name is never assigned in scope
    global long_type
    ^

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
xuxingliang 2025-04-23 19:56:44 +08:00 committed by Xiang Xiao
parent 341292064d
commit 28b2e01c22

View file

@ -227,8 +227,6 @@ class Backtrace:
def lookup_type(name, block=None) -> gdb.Type:
"""Return the type object of a type name"""
global g_type_cache
key = (name, block)
if key not in g_type_cache:
try:
@ -287,7 +285,6 @@ long_type = lookup_type("long")
def get_long_type():
"""Return the cached long type object"""
global long_type
return long_type