You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix sageinspect for Python 3.14: Add visit_Constant method to SageArgSpecVisitor
In Python 3.14, the AST representation was fully unified to use ast.Constant
nodes for all literal values (numbers, strings, booleans, None). Previously,
Python 3.8-3.13 still generated legacy node types (ast.Num, ast.Str,
ast.NameConstant) for backward compatibility.
The SageArgSpecVisitor class had visit methods for the legacy node types
but was missing visit_Constant(), causing it to return None for all constant
default argument values when parsing function signatures on Python 3.14.
This fix adds the visit_Constant() method to properly handle the unified
AST representation, allowing correct extraction of default argument values
like base=0 in Integer.__init__(self, x=None, base=0).
Fixes: #<issue_number> (if applicable)
0 commit comments