type-check-without-type-error (TRY004)
Added in v0.0.230 · Related issues · View source
Derived from the tryceratops linter.
What it does
Checks for type checks that do not raise TypeError.
Why is this bad?
The Python documentation states that TypeError should be raised upon
encountering an inappropriate type.
Example
Use instead: