Skip to content

Warning about natural language literals #38

@OriolAbril

Description

@OriolAbril

It might be related to #36 but I think it is an unintended consequence of #37. I am now seeing a warning about natural language literals, even in the example package which I think makes sensible use of literals. It probably happens in tests too:

WARNING: natural language literal with one item 1, consider using Literal[1, 3, "foo"] to improve readability
WARNING: natural language literal with one item "uno", consider using Literal["uno", 2, "drei", "four"] to improve readability

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions