Back to Ruff

TypeError: 'int' object is not callable

crates/ty_python_semantic/resources/lint_docs/call-non-callable.md

0.15.18230 B
Original Source

What it does

Checks for calls to non-callable objects.

Why is this bad?

Calling a non-callable object will raise a TypeError at runtime.

Examples

python
# TypeError: 'int' object is not callable
4()  # error