.. function:: weekheader(n)
Return a header containing abbreviated weekday names. *n* specifies the width in
characters for one weekday.
def formatweekheader(self, width):
"""
Return a header for a week.
"""
header = super().formatweekheader(width)
theme = self._get_theme().calendar
return f"{theme.weekday}{header}{theme.reset}"
Documentation in the calendar.rst file should be updated to reflect the actual implementation.
Documentation
Documentation contains the following signature:
In reality the function uses "width" as the parameter name:
Documentation in the calendar.rst file should be updated to reflect the actual implementation.
Linked PRs
calendar.weekheaderfromntowidth(GH-153942) #153943calendar.weekheaderfromntowidth(GH-153942) #153944calendar.weekheaderfromntowidth(GH-153942) #153945