Skip to content

small bug in 'class Appender' #3106

Closed
Closed
@cgringmuth

Description

@cgringmuth

I think there is small bug in the Appender class in docstring.py module?

# version with error
def __call__(self, func):
    docitems = [func.__doc__, self.addendum]
    func.__doc__ = func.__doc__ and ''.join(docitems) # <- here is there error
    return func

# corrected version
def __call__(self, func):
    docitems = [func.__doc__, self.addendum]
    func.__doc__ = func.__doc__ and self.join.join(docitems) # corrected version
    return func

I have tested the corrected version and my correction works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions