Skip to content

format_type_string manipulates Literal[] values incorrectly. #68

@jahn-junior

Description

@jahn-junior

format_type_string normally strips the module path from the field's type to improve the output's readability. However, when passed a value like Literal['[email protected]', '[email protected]'], Kitbash produces the following output:

Image

The function should account for cases like this, as it's unreasonable to bar literal values from containing certain characters.

:override-type: can be used as a workaround until this is resolved.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions