Skip to content

new rule - empty body #3738

Closed
Closed

Description

@DetachHead

ty has a rule called empty-body that detects functions with ... as the body:

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

  1. added
    help wantedLarger than "good first issue", but still well-defined and ready for someone to pick up
    on Jun 10, 2026
  2. asukaminato0721 commented on Jun 18, 2026

    @asukaminato0721
    Collaborator

    claim

  3. added a commit that references this issue on Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wantedLarger than "good first issue", but still well-defined and ready for someone to pick uptypechecking

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions