-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type of "create_pydantic_model" is partially unknown (Python 3.11) #900
Comments
@Donokami That's a really nice solution! What I've been doing in the past is something like: MyTableBaseModel = create_pydantic_model(MyTable)
class MyTableModel(MyTableBaseModel):
... But what you've done is definitely cleaner. I'll modify this bit of the docs to include it. I upgraded VSCode, and Pylance is way more aggressive now. Previously I didn't encounter any warnings with the Piccolo project, but now there are quite a few I need to look into. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey!
When trying to use Piccolo v1.1 with Pydantic V2, Python 3.11 and Pylance in strict mode I've got this issue:
Here is any way to run a FastAPI project in strict type mode? Or for now it is recommended to use it in basic mode?
And by the way, when I'm trying this (in basic mode):
I also run into an issue:
The text was updated successfully, but these errors were encountered: