Skip to content

Include string Literal ValueErrors #37

Closed
@juleswg23

Description

@juleswg23

For example:

# Throw if `text_decoration_style` is not one of the three allowed values
if text_decoration_style not in [None, "solid", "dotted"]:
    raise ValueError("Text_decoration_style must be one of `None`, 'solid', or 'dotted'")

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