You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type "JsonValue" cannot be assigned to parameter "data" of type "Serializable" in function "__init__"
Type "JsonValue" is not assignable to type "Serializable"
Type "Dict[str, JsonValue]" is not assignable to type "Serializable"
"Dict[str, JsonValue]" is not assignable to "None"
"Dict[str, JsonValue]" is not assignable to "bool"
"Dict[str, JsonValue]" is not assignable to "float"
"Dict[str, JsonValue]" is not assignable to "int"
"Dict[str, JsonValue]" is not assignable to "str"
"Dict[str, JsonValue]" is not assignable to "datetime"
...Pylance[reportArgumentType](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportArgumentType)
Bug description
pydantic has its own type for parsing JSON: https://docs.pydantic.dev/latest/api/types/#pydantic.types.JsonValue.
Sadly it does not seem to be assignable to
Serializable
, so you cannot cleanly construct aprisma.Json
object from it.How to reproduce
Prisma information
N/A
Environment & setup
The text was updated successfully, but these errors were encountered: