@@ -3645,7 +3645,8 @@ static PyMethodDef date_methods[] = {
36453645
36463646 DATETIME_DATE_REPLACE_METHODDEF
36473647
3648- {"__replace__" , _PyCFunction_CAST (datetime_date_replace ), METH_FASTCALL | METH_KEYWORDS },
3648+ {"__replace__" , _PyCFunction_CAST (datetime_date_replace ), METH_FASTCALL | METH_KEYWORDS ,
3649+ PyDoc_STR ("__replace__($self, /, **changes)\n--\n\nThe same as replace()." )},
36493650
36503651 {"__reduce__" , (PyCFunction )date_reduce , METH_NOARGS ,
36513652 PyDoc_STR ("__reduce__() -> (cls, state)" )},
@@ -4772,7 +4773,8 @@ static PyMethodDef time_methods[] = {
47724773
47734774 DATETIME_TIME_REPLACE_METHODDEF
47744775
4775- {"__replace__" , _PyCFunction_CAST (datetime_time_replace ), METH_FASTCALL | METH_KEYWORDS },
4776+ {"__replace__" , _PyCFunction_CAST (datetime_time_replace ), METH_FASTCALL | METH_KEYWORDS ,
4777+ PyDoc_STR ("__replace__($self, /, **changes)\n--\n\nThe same as replace()." )},
47764778
47774779 {"fromisoformat" , (PyCFunction )time_fromisoformat , METH_O | METH_CLASS ,
47784780 PyDoc_STR ("string -> time from a string in ISO 8601 format" )},
@@ -6619,7 +6621,8 @@ static PyMethodDef datetime_methods[] = {
66196621
66206622 DATETIME_DATETIME_REPLACE_METHODDEF
66216623
6622- {"__replace__" , _PyCFunction_CAST (datetime_datetime_replace ), METH_FASTCALL | METH_KEYWORDS },
6624+ {"__replace__" , _PyCFunction_CAST (datetime_datetime_replace ), METH_FASTCALL | METH_KEYWORDS ,
6625+ PyDoc_STR ("__replace__($self, /, **changes)\n--\n\nThe same as replace()." )},
66236626
66246627 {"astimezone" , _PyCFunction_CAST (datetime_astimezone ), METH_VARARGS | METH_KEYWORDS ,
66256628 PyDoc_STR ("tz -> convert to local time in new timezone tz\n" )},
0 commit comments