Skip to content

surface_alt_text doesn't forward non-keyword arguments #9

@adamnovak

Description

@adamnovak

surface_alt_text is meant to be a thin wrapper around add_alt_text now:

# for backwards compatability
def surface_alt_text(**kwargs):
add_alt_text(**kwargs)

But it only forwards keyword arguments, not positional arguments (*args). So if I call it like the documentation for 0.6 says:

surface_alt_text(sunshine_alt, methods=["html", "img_file"])

Then I get:

TypeError: surface_alt_text() takes 0 positional arguments but 1 was given

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