Skip to content

Documentation for weekheader names parameter incorrectly #153934

Description

@podmar

Documentation

Documentation contains the following signature:

.. function:: weekheader(n)

   Return a header containing abbreviated weekday names. *n* specifies the width in
   characters for one weekday.

In reality the function uses "width" as the parameter name:

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.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirsprint

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done
    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions