prisma-client-py
prisma-client-py copied to clipboard
Some types are disabled by default due to being incompatible with Mypy can't go away
Bug description
Here is my prisma config:
generator client {
provider = "prisma-client-js"
}
generator py {
provider = "prisma-client-py"
interface = "sync"
recursive_type_depth = -1
}
When I run
python -m prisma generate
I get
Some types are disabled by default due to being incompatible with Mypy, it is highly recommended
to use Pyright instead and configure Prisma Python to use recursive types. To re-enable certain types:
generator client {
provider = "prisma-client-py"
recursive_type_depth = -1
}
If you need to use Mypy, you can also disable this message by explicitly setting the default value:
generator client {
provider = "prisma-client-py"
recursive_type_depth = 5
}
I also have this on each script invocation which uses prisma. I have a pipeline of 15 scripts. Each of them uses prisma, and prints little debug info that is somewhat informative for my pipeline. And this message, like 15 times. I have already enabled it, tried changing it to 5, tried copy pasting, the exact code it suggests me. And nothing, each time I try to run these sequential scripts, I get this printed out.
I can't reproduce this issue unfortunately, can you please share these details:
- Operating system
- Python version
- Pydantic version (with
python -c "import pydantic.version; print(pydantic.version.version_info())"
)