Skip to content

Variable declaration does not check input type #2

@stephteo

Description

@stephteo

For (possibly) all variables types (e.g. BoolVar, IntVar) etc, we do not do any type validation/conversion if the user tries to create a variable with a value that is not a boolean or integer.

Some suggests for cases where we should consider converting instead of failing:
BoolVar(1, "i") --> BoolVar(True, "i")
IntVar(1.0, "j") --> IntVar(1, "j")

There may also be some other cases where it would make more sense to warn & convert instead of failing.

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