diff options
author | Peter Bierma <zintensitydev@gmail.com> | 2024-11-29 10:12:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-29 10:12:13 (GMT) |
commit | 99490913a08adcf2fe5e69b82772a829ec462275 (patch) | |
tree | e6d115a46927237ceaba77300477cc5cd27d865a /Lib/test | |
parent | 762c603a866146afc7db2591fb49605e0858e9b1 (diff) | |
download | cpython-99490913a08adcf2fe5e69b82772a829ec462275.zip cpython-99490913a08adcf2fe5e69b82772a829ec462275.tar.gz cpython-99490913a08adcf2fe5e69b82772a829ec462275.tar.bz2 |
gh-127341: Argument Clinic: fix compiler warnings for getters with docstrings (#127310)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/clinic.test.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Lib/test/clinic.test.c b/Lib/test/clinic.test.c index 4ad0b8b..b6ae04e 100644 --- a/Lib/test/clinic.test.c +++ b/Lib/test/clinic.test.c @@ -5303,9 +5303,7 @@ Test_meth_coexist_impl(TestObj *self) Test.property [clinic start generated code]*/ -#if defined(Test_property_HAS_DOCSTR) -# define Test_property_DOCSTR Test_property__doc__ -#else +#if !defined(Test_property_DOCSTR) # define Test_property_DOCSTR NULL #endif #if defined(TEST_PROPERTY_GETSETDEF) @@ -5326,16 +5324,14 @@ Test_property_get(TestObj *self, void *Py_UNUSED(context)) static PyObject * Test_property_get_impl(TestObj *self) -/*[clinic end generated code: output=27b519719d992e03 input=2d92b3449fbc7d2b]*/ +/*[clinic end generated code: output=7cadd0f539805266 input=2d92b3449fbc7d2b]*/ /*[clinic input] @setter Test.property [clinic start generated code]*/ -#if defined(TEST_PROPERTY_HAS_DOCSTR) -# define Test_property_DOCSTR Test_property__doc__ -#else +#if !defined(Test_property_DOCSTR) # define Test_property_DOCSTR NULL #endif #if defined(TEST_PROPERTY_GETSETDEF) @@ -5360,7 +5356,7 @@ Test_property_set(TestObj *self, PyObject *value, void *Py_UNUSED(context)) static int Test_property_set_impl(TestObj *self, PyObject *value) -/*[clinic end generated code: output=d51023f17c4ac3a1 input=3bc3f46a23c83a88]*/ +/*[clinic end generated code: output=e4342fe9bb1d7817 input=3bc3f46a23c83a88]*/ /*[clinic input] output push |