Skip to content

Possible to support pydantic #1013

Answered by erictraut
michaeloliverx asked this question in Ideas
Discussion options

You must be logged in to vote

Pyright, the type checker upon which pylance is based, uses standard static type information provided by libraries. It does not (nor do we have any plans to) provide any special casing for third-party libraries like pydantic.

We have given some thought to the possibility of creating a way to extend static typing so library authors can specify more dynamic behaviors. This is a significant undertaking, and if it does happen, we need to go through an open specification and standardization process so all type checkers and all libraries benefit. Just to set expectations, this is not something that will happen any time soon.

In the meantime, libraries that use dynamic behaviors are not going to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michaeloliverx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants