mirror of
https://github.com/python/cpython.git
synced 2025-12-03 16:19:41 +00:00
GH-137623: Use an AC decorator for docstring line length enforcement (#137690)
This commit is contained in:
parent
0324c726de
commit
918e3ba6c0
76 changed files with 569 additions and 570 deletions
|
|
@ -1035,6 +1035,7 @@ cmath_rect_impl(PyObject *module, double r, double phi)
|
|||
}
|
||||
|
||||
/*[clinic input]
|
||||
@permit_long_summary
|
||||
cmath.isfinite = cmath.polar
|
||||
|
||||
Return True if both the real and imaginary parts of z are finite, else False.
|
||||
|
|
@ -1042,7 +1043,7 @@ Return True if both the real and imaginary parts of z are finite, else False.
|
|||
|
||||
static PyObject *
|
||||
cmath_isfinite_impl(PyObject *module, Py_complex z)
|
||||
/*[clinic end generated code: output=ac76611e2c774a36 input=848e7ee701895815]*/
|
||||
/*[clinic end generated code: output=ac76611e2c774a36 input=e224f5c36d94f5da]*/
|
||||
{
|
||||
return PyBool_FromLong(isfinite(z.real) && isfinite(z.imag));
|
||||
}
|
||||
|
|
@ -1074,6 +1075,7 @@ cmath_isinf_impl(PyObject *module, Py_complex z)
|
|||
}
|
||||
|
||||
/*[clinic input]
|
||||
@permit_long_docstring_body
|
||||
cmath.isclose -> bool
|
||||
|
||||
a: Py_complex
|
||||
|
|
@ -1100,7 +1102,7 @@ not close to anything, even itself. inf and -inf are only close to themselves.
|
|||
static int
|
||||
cmath_isclose_impl(PyObject *module, Py_complex a, Py_complex b,
|
||||
double rel_tol, double abs_tol)
|
||||
/*[clinic end generated code: output=8a2486cc6e0014d1 input=df9636d7de1d4ac3]*/
|
||||
/*[clinic end generated code: output=8a2486cc6e0014d1 input=0d45feea7c626f47]*/
|
||||
{
|
||||
double diff;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue