Skip to content
Discussion options

You must be logged in to vote

Hey there, FastAPI already has the source code fully annotated and the metadata to mark it like that. .pyi files 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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
Converted from issue

This discussion was converted from issue #1835 on February 28, 2023 01:14.