Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Oct 11, 2024
1 parent f1d6c20 commit 4f5374b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyanalyze/name_check_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4f5374b

Please sign in to comment.