isinstance(x, Callable) => callable(x)
sbrugman opened this issue · comments
Simon Brugman commented
@guilatrova Would you be open to adding a Violation for the following? Not directly related to exceptions other than through 32
from typing import Callable
if isinstance(x, Callable):
pass
which should be:
if callable(x):
pass
Guilherme Latrova commented
I'm afraid that if we go through this path, Tryceratops will lose its focus.
Let's stick to try/except and exception scenarios.