type-check-without-type-error (TRY004)
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: