Skip to content

Commit 2a83cc6

Browse files
committed
Add missing types to docstring of ast.literal_eval.
The reST doc was updated but not the docstring.
1 parent e7d36fe commit 2a83cc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/ast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def literal_eval(node_or_string):
4040
"""
4141
Safely evaluate an expression node or a string containing a Python
4242
expression. The string or node provided may only consist of the following
43-
Python literal structures: strings, numbers, tuples, lists, dicts, booleans,
44-
and None.
43+
Python literal structures: strings, bytes, numbers, tuples, lists, dicts,
44+
sets, booleans, and None.
4545
"""
4646
_safe_names = {'None': None, 'True': True, 'False': False}
4747
if isinstance(node_or_string, str):

0 commit comments

Comments
 (0)