Skip to content

Add error handling for misspelled kwargs in adafruit_display_text.label #202

@bradanlane

Description

@bradanlane

The parameters for the adafruit_display_text.label are anchor_point and anchored_position. This is confusing and results in frequent user errors. The error is not caught by Python which is difficult for a user to debug.

I don't know if there is a generalized solution for catching this type of error.

A solution for this specific case would be to add anchor_position as a property and raise an error on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions