Skip to content

Commit de15f70

Browse files
Add a signature for weird str() case.
1 parent 8b5e802 commit de15f70

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,8 @@ are always available. They are listed here in alphabetical order.
19401940
single: string; str() (built-in function)
19411941

19421942
.. _func-str:
1943-
.. class:: str(object='')
1943+
.. class:: str(*, encoding='utf-8', errors='strict')
1944+
str(object)
19441945
str(object, encoding, errors='strict')
19451946
str(object, *, errors)
19461947
:noindex:

Doc/library/stdtypes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,8 @@ multiple fragments.
16961696
.. index::
16971697
single: string; str (built-in class)
16981698

1699-
.. class:: str(object='')
1699+
.. class:: str(*, encoding='utf-8', errors='strict')
1700+
str(object)
17001701
str(object, encoding, errors='strict')
17011702
str(object, *, errors)
17021703

0 commit comments

Comments
 (0)