Skip to content

Commit

Permalink
Shut up mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykMroczek committed Nov 29, 2023
1 parent 209ae42 commit bea06c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mofmt/parsing/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ def exitEveryRule(self, ctx: antlr.ParserRuleContext) -> None:

def is_multiline(ctx: antlr.ParserRuleContext) -> bool:
"""Return `True` if the rule is multiline"""
return ctx.stop.line - ctx.start.line > 0
# To satisfy the mypy
result: bool = (ctx.stop.line - ctx.start.line) > 0
return result


def get_preceding_token(
Expand Down

0 comments on commit bea06c7

Please sign in to comment.