Skip to content

Commit 5a36751

Browse files
Update Lib/annotationlib.py
Fix a misplaced parenthesis that incorrectly caused a statement to evaluate as truthy Co-authored-by: Shamil <ashm.tech@proton.me>
1 parent 675738a commit 5a36751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/annotationlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def __resolved_str__(self):
271271
if names:
272272
# identifiers can be replaced directly
273273
if resolved_str.isidentifier():
274-
if (name_obj := names.get(resolved_str), _sentinel) is not _sentinel:
274+
if (name_obj := names.get(resolved_str, _sentinel)) is not _sentinel:
275275
resolved_str = type_repr(name_obj)
276276
else:
277277
visitor = _ExtraNameFixer(names)

0 commit comments

Comments
 (0)