mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +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
|
|
@ -548,6 +548,7 @@ zoneinfo_ZoneInfo_clear_cache_impl(PyTypeObject *type, PyTypeObject *cls,
|
|||
}
|
||||
|
||||
/*[clinic input]
|
||||
@permit_long_summary
|
||||
zoneinfo.ZoneInfo.utcoffset
|
||||
|
||||
cls: defining_class
|
||||
|
|
@ -560,7 +561,7 @@ Retrieve a timedelta representing the UTC offset in a zone at the given datetime
|
|||
static PyObject *
|
||||
zoneinfo_ZoneInfo_utcoffset_impl(PyObject *self, PyTypeObject *cls,
|
||||
PyObject *dt)
|
||||
/*[clinic end generated code: output=b71016c319ba1f91 input=2bb6c5364938f19c]*/
|
||||
/*[clinic end generated code: output=b71016c319ba1f91 input=8ce0dc2d179f01c5]*/
|
||||
{
|
||||
zoneinfo_state *state = zoneinfo_get_state_by_cls(cls);
|
||||
_ttinfo *tti = find_ttinfo(state, PyZoneInfo_ZoneInfo_CAST(self), dt);
|
||||
|
|
@ -571,6 +572,7 @@ zoneinfo_ZoneInfo_utcoffset_impl(PyObject *self, PyTypeObject *cls,
|
|||
}
|
||||
|
||||
/*[clinic input]
|
||||
@permit_long_summary
|
||||
zoneinfo.ZoneInfo.dst
|
||||
|
||||
cls: defining_class
|
||||
|
|
@ -582,7 +584,7 @@ Retrieve a timedelta representing the amount of DST applied in a zone at the giv
|
|||
|
||||
static PyObject *
|
||||
zoneinfo_ZoneInfo_dst_impl(PyObject *self, PyTypeObject *cls, PyObject *dt)
|
||||
/*[clinic end generated code: output=cb6168d7723a6ae6 input=2167fb80cf8645c6]*/
|
||||
/*[clinic end generated code: output=cb6168d7723a6ae6 input=22b2abdf9388423c]*/
|
||||
{
|
||||
zoneinfo_state *state = zoneinfo_get_state_by_cls(cls);
|
||||
_ttinfo *tti = find_ttinfo(state, PyZoneInfo_ZoneInfo_CAST(self), dt);
|
||||
|
|
@ -593,6 +595,7 @@ zoneinfo_ZoneInfo_dst_impl(PyObject *self, PyTypeObject *cls, PyObject *dt)
|
|||
}
|
||||
|
||||
/*[clinic input]
|
||||
@permit_long_summary
|
||||
zoneinfo.ZoneInfo.tzname
|
||||
|
||||
cls: defining_class
|
||||
|
|
@ -605,7 +608,7 @@ Retrieve a string containing the abbreviation for the time zone that applies in
|
|||
static PyObject *
|
||||
zoneinfo_ZoneInfo_tzname_impl(PyObject *self, PyTypeObject *cls,
|
||||
PyObject *dt)
|
||||
/*[clinic end generated code: output=3b6ae6c3053ea75a input=15a59a4f92ed1f1f]*/
|
||||
/*[clinic end generated code: output=3b6ae6c3053ea75a input=0882926c4e95a1e2]*/
|
||||
{
|
||||
zoneinfo_state *state = zoneinfo_get_state_by_cls(cls);
|
||||
_ttinfo *tti = find_ttinfo(state, PyZoneInfo_ZoneInfo_CAST(self), dt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue