Skip to content

Replace Critical Asserts #87

@Vollkornaffe

Description

@Vollkornaffe

We shouldn't rely on assertions for logic-critical things; they can be stripped in optimized settings.

Instead, we should use branching with dedicated Exception classes.

Related: https://discuss.python.org/t/stop-ignoring-asserts-when-running-in-optimized-mode/13132

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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