Unable to pass list[Literal[...]]
as parameter to in
filter
#981
Labels
kind/improvement
An improvement to existing feature and code.
topic: types
An issue or improvement to typing
Milestone
Bug description
Passing a list of literal values to a
where={"field": {"in": here}}
causes pyright to throw a following error:How to reproduce
Expected behavior
Expected to be able to pass a list of string literals as argument to
in
.Prisma information
Environment & setup
Additional info
This can be fixed by replacing
List[str]
in the generated types withSequence[str]
:https://pyright-play.net/?strict=true&code=GYJw9gtgBALgngBwJYDsDmUkQWEMoAySMApiAIYA2ANFAMbkDOMtAyiQI4CuJKdJAKAGUkzIqQqUoAXnpMYAChHMA2uLJUVAIgCMW2loBM%2BqFoDMWgLqXa2vQeMGLlgJRCA%2BjoBcUZTBXMIJYyvqIw6pIC7oY%2B7Ny8-AEwQSF%2BEVQCQA
The text was updated successfully, but these errors were encountered: