Skip to content

Type mismatch in UIGridLayout.__init__ between annotation and align defaults #1356

@pushfoo

Description

@pushfoo

Bug Report

tl;dr: The docstring type annotations for UIGridLayout say float for align_horizontal and align_vertical, but the default values are strings.

version: Tip of development branch (c5ac350)

Annotation

:param float align_horizontal: Align children in orthogonal direction (x: left, center, right)
:param float align_vertical: Align children in orthogonal direction (y: top, center, bottom)

Defaults

align_horizontal="center",
align_vertical="center",

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