Ellipsis in Callable Type Annotations
Detects usage of ... (ellipsis) in the first argument of Callable type annotations, which bypasses parameter type checking.
Using Callable[..., ReturnType] indicates that the callable accepts any number of arguments of any type. The type checker cannot verify argument types or counts, which can lead to runtime errors.
What gets flagged
| Python | |
|---|---|
1 2 3 4 5 6 7 8 9 10 | |
Unsoundness Checker Output
| Text Only | |
|---|---|
1 2 3 4 5 6 7 8 9 10 | |
Mypy: No Diagnostic Emitted
Pyright: No Diagnostic Emitted
Ty: No Diagnostic Emitted