From 4f5374bfceaf52253b9fdf760162223b4bdf70fe Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 11 Oct 2024 16:29:53 -0700 Subject: [PATCH] fix --- pyanalyze/name_check_visitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyanalyze/name_check_visitor.py b/pyanalyze/name_check_visitor.py index c56c5527..2ca5521e 100644 --- a/pyanalyze/name_check_visitor.py +++ b/pyanalyze/name_check_visitor.py @@ -4816,8 +4816,8 @@ def visit_TypeVar(self, node: ast.TypeVar) -> Value: else: bound = self.visit(node.bound) if sys.version_info >= (3, 13): - if node.default is not None: - default = self.visit(node.default) + if node.default_value is not None: + default = self.visit(node.default_value) tv = TypeVar(node.name) typevar = TypeVarValue( tv,