Skip to content

Commit 0de79a8

Browse files
Update Lib/ast.py
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent fe46b03 commit 0de79a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _convert_literal(node):
7272
"""
7373
if (
7474
isinstance(node, Constant)
75-
and type(value := node.value) in (int, float, complex, bytes, bool,
75+
and type(value := node.value) in (int, float, complex, bytes, bool, str, bytes,
7676
type_None, type_Ellipsis)
7777
):
7878
return value

0 commit comments

Comments
 (0)