Skip to content

Commit 2e51a64

Browse files
committed
Clarify code intent.
1 parent 8fb8420 commit 2e51a64

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
@@ -609,7 +609,7 @@ def _template_to_ast(template):
609609
# literals. Return the most accurate AST we can. See issue for details.
610610

611611
# If any expr is empty or whitespace only, we cannot convert to a literal.
612-
if any(not part.expression.strip() for part in template.interpolations):
612+
if any(part.expression.strip() == "" for part in template.interpolations):
613613
return _template_to_ast_constructor(template)
614614

615615
try:

0 commit comments

Comments
 (0)