How does `mypy` know the signature of the pydantic model?
How does `mypy` know the signature of the pydantic model? Question: How does mypy know the signature of the pydantic model in this manner? from pydantic import BaseModel class Model(BaseModel): a: int Model(a=’asd’) # error: Argument "a" to "Model" has incompatible type "str"; expected "int" How can pydantic BaseModel‘s metaclass change the __init__ signature? Asked …