Skip to content

Will Red Knot be a drop-in replacement for mypy or pyright? #15149

Answered by carljm
kkpattern asked this question in Q&A
Discussion options

You must be logged in to vote

Type checkers are complex tools, and red knot will certainly not be a drop-in replacement for either mypy or pyright. It will be a distinct alternative with its own design choices. We prioritize good type inference, even in un-annotated code, and we aim to avoid false positives on working unannotated code, where mypy is often more willing to say “you must write this (working) code differently.”

We will want to offer something like disallow-untyped-defs, but we would consider that a lint rule to be built on top of the core red knot engine in a type-aware linter, not a core type checker feature.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kkpattern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants