Skip to content

incorrect typing in horizontal_alignment and vertical_alignment #1285

Closed
@Vlod-github

Description

@Vlod-github

def vertical_alignment(self, value: MainAxisAlignment):

Hi, the vertical_alignment function accepts value: MainAxisAlignment. But in fact it accepts it accepts value: Union[MainAxisAlignment, MainAxisAlignmentString]. Similarly with horizontal_alignment

Insert the following code

from typing import List, Optional, Union

def horizontal_alignment(self, value: Union[CrossAxisAlignment, CrossAxisAlignmentString]):

def vertical_alignment(self, value: Union[CrossAxisAlignment, CrossAxisAlignmentString]):

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