@@ -182,10 +182,8 @@ are always available. They are listed here in alphabetical order.
182182 .. versionadded :: 3.7
183183
184184.. _func-bytearray :
185- .. class :: bytearray()
186- bytearray(source)
187- bytearray(source, encoding)
188- bytearray(source, encoding, errors)
185+ .. class :: bytearray(source=b'')
186+ bytearray(source, encoding, errors='strict')
189187 :noindex:
190188
191189 Return a new array of bytes. The :class: `bytearray ` class is a mutable
@@ -215,10 +213,8 @@ are always available. They are listed here in alphabetical order.
215213
216214
217215.. _func-bytes :
218- .. class :: bytes()
219- bytes(source)
220- bytes(source, encoding)
221- bytes(source, encoding, errors)
216+ .. class :: bytes(source=b'')
217+ bytes(source, encoding, errors='strict')
222218 :noindex:
223219
224220 Return a new "bytes" object which is an immutable sequence of integers in
@@ -848,7 +844,7 @@ are always available. They are listed here in alphabetical order.
848844
849845
850846.. _func-frozenset :
851- .. class :: frozenset(iterable=set (), /)
847+ .. class :: frozenset(iterable=(), /)
852848 :noindex:
853849
854850 Return a new :class: `frozenset ` object, optionally with elements taken from
@@ -1146,8 +1142,7 @@ are always available. They are listed here in alphabetical order.
11461142
11471143
11481144.. _func-list :
1149- .. class :: list()
1150- list(iterable, /)
1145+ .. class :: list(iterable=(), /)
11511146 :noindex:
11521147
11531148 Rather than being a function, :class: `list ` is actually a mutable
@@ -1763,7 +1758,7 @@ are always available. They are listed here in alphabetical order.
17631758 return f"Person('{self.name}', {self.age})"
17641759
17651760
1766- .. function :: reversed(sequence , /)
1761+ .. function :: reversed(object , /)
17671762
17681763 Return a reverse :term: `iterator `. The argument must be an object which has
17691764 a :meth: `~object.__reversed__ ` method or supports the sequence protocol (the
@@ -1799,8 +1794,7 @@ are always available. They are listed here in alphabetical order.
17991794
18001795
18011796.. _func-set :
1802- .. class :: set()
1803- set(iterable, /)
1797+ .. class :: set(iterable=(), /)
18041798 :noindex:
18051799
18061800 Return a new :class: `set ` object, optionally with elements taken from
@@ -1940,10 +1934,8 @@ are always available. They are listed here in alphabetical order.
19401934 single: string; str() (built-in function)
19411935
19421936.. _func-str :
1943- .. class :: str()
1944- str(object)
1945- str(object, encoding)
1946- str(object, encoding, errors)
1937+ .. class :: str(object='')
1938+ str(object, encoding, errors='strict')
19471939 str(object, *, errors)
19481940 :noindex:
19491941
@@ -2059,8 +2051,7 @@ are always available. They are listed here in alphabetical order.
20592051
20602052
20612053.. _func-tuple :
2062- .. class :: tuple()
2063- tuple(iterable, /)
2054+ .. class :: tuple(iterable=(), /)
20642055 :noindex:
20652056
20662057 Rather than being a function, :class: `tuple ` is actually an immutable
0 commit comments