Skip to content

[Bug] Incorrect Type Hints #559

@sssaha

Description

@sssaha

The size property in DMC MODAL can be 55% - which is essentially a string. However the Type checker shows an warning if a string is provided

As this is the following definition:

size: typing.Optional[typing.Union[typing.Union[int, float, numbers.Number], Literal["xs"], Literal["sm"], Literal["md"], Literal["lg"], Literal["xl"]]] = None,

Same goes for the Title Component of Modal - the Title can be a DMC TITLE OR DMC Text - and not has to be a string component

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions