Replies: 2 comments
-
See this issue. Out of curiosity, why do you want to require return type annotations in your code? It will not improve type safety. |
Beta Was this translation helpful? Give feedback.
0 replies
-
A linter would probably be a better way to enforce this. You could utilize Ruff's |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a function:
I hope pyright would report that it misses the type annotation (for the return type).
I want this feature to ensure that all my Python code are annotated.
Somehow this script can correctly fail:
... while this one, seems as long as pyright can infer the type, can omit the return type:
Beta Was this translation helpful? Give feedback.
All reactions