-
|
Would be nice if fastapi shipped with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
yes, this would be great!! |
Beta Was this translation helpful? Give feedback.
-
|
Hey there, FastAPI already has the source code fully annotated and the metadata to mark it like that. For reference, directly from Pyright: https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#inlined-type-annotations-and-type-stubs |
Beta Was this translation helpful? Give feedback.
Hey there, FastAPI already has the source code fully annotated and the metadata to mark it like that.
.pyifiles are only when the code is not annotated. You should be able to check your code with Pyright or mypy.For reference, directly from Pyright: https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#inlined-type-annotations-and-type-stubs