Skip to content

Replace ValidationResult | str with a ValidationOutcome type #176

@alexhambley

Description

@alexhambley

Issue

Right now, validation functions return ValidationResult | str (which is a string on error), so this means that every caller must isinstance(result, str) to detect any failures, and an error string is indistinguishable by type to a real result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions