From f4ec9ff8964fcf5de2ad63ea84b5654d1f271760 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 18 May 2024 09:38:21 -0400 Subject: [PATCH] Update pyi.py --- pyi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyi.py b/pyi.py index 0811157..4b9a1bf 100644 --- a/pyi.py +++ b/pyi.py @@ -2245,7 +2245,7 @@ def check_arg_default(self, arg: ast.arg, default: ast.expr | None) -> None: if default is not None and not _is_valid_default_value_with_annotation(default): self.error(default, (Y014 if arg.annotation is None else Y011)) - def error(self, node: ast.expr | ast.stmt, message: str) -> None: + def error(self, node: ast.arg | ast.expr | ast.stmt, message: str) -> None: self.errors.append(Error(node.lineno, node.col_offset, message, PyiTreeChecker)) def _check_for_unused_things(self) -> None: