Skip to content

Commit b53308a

Browse files
committed
address review: change defaults to ()
1 parent f94dab5 commit b53308a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎Modules/arraymodule.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,7 +2936,7 @@ array_buffer_relbuf(PyObject *op, Py_buffer *Py_UNUSED(view))
29362936
@classmethod
29372937
array.array.__new__ as array_new
29382938
typecode as s: str
2939-
initializer as initial: object(c_default="NULL") = None
2939+
initializer as initial: object(c_default="NULL") = ()
29402940
/
29412941
29422942
Create array object.
@@ -2999,7 +2999,7 @@ itemsize -- the length in bytes of one array item
29992999

30003000
static PyObject *
30013001
array_new_impl(PyTypeObject *type, const char *s, PyObject *initial)
3002-
/*[clinic end generated code: output=4b6a68b7540f8f3f input=a91c3679e757d2cf]*/
3002+
/*[clinic end generated code: output=4b6a68b7540f8f3f input=23a2e91f05deccff]*/
30033003
{
30043004
array_state *state = find_array_state_by_type(type);
30053005
PyObject *it = NULL;

‎Modules/clinic/arraymodule.c.h‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)