This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 28b2e01c22385d83c0f2729a130f441cee1173f6
Author: xuxingliang <[email protected]>
AuthorDate: Wed Apr 23 19:56:44 2025 +0800

    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 <[email protected]>
---
 tools/pynuttx/nxgdb/utils.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tools/pynuttx/nxgdb/utils.py b/tools/pynuttx/nxgdb/utils.py
index b7911796d8..e3a12ab243 100644
--- a/tools/pynuttx/nxgdb/utils.py
+++ b/tools/pynuttx/nxgdb/utils.py
@@ -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
 
 

Reply via email to