Return type of method is lost/ignored when overriding a method of a generic class #24205
-
|
I have the following code and would expect more errors: As it currently is, this code looks fine in my IDE. Is there a rule which I forgot to enable or is this not supported by ruff? |
Beta Was this translation helpful? Give feedback.
Answered by
MichaReiser
Mar 26, 2026
Replies: 1 comment
-
|
Ruff is a linter and not a type checker. For type checking, try https://docs.astral.sh/ty/ or https://microsoft.github.io/pyright/#/ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
digulla
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ruff is a linter and not a type checker. For type checking, try https://docs.astral.sh/ty/ or https://microsoft.github.io/pyright/#/