Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Jul 12, 2024
1 parent 054f8cd commit fdc1c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyanalyze/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def make_type_var_value(tv: TypeVarLike, ctx: Context) -> TypeVarValue:
)
else:
constraints = ()
if getattr(tv, "__default__", NoDefault) is not NoDefault:
if hasattr(tv, "__default__") and tv.__default__ is not NoDefault:
default = _type_from_runtime(tv.__default__, ctx)
else:
default = None
Expand Down

0 comments on commit fdc1c46

Please sign in to comment.