ty has a rule called [`empty-body` ](https://docs.astral.sh/ty/reference/rules/#empty-body) that detects functions with `...` as the body: ```py def foo() -> int: ... # error: [empty-body] ``` this should be reported as an error unless in a `.pyi` file or an `if TYPE_CHECKING` block
Activity
asukaminato0721 commentedon Jun 18, 2026
claim
fix new rule - empty body #3738 (#3868)
fix new rule - empty body pyrefly-org#3738 (pyrefly-org#3868)