diff --git a/pyproject.toml b/pyproject.toml index bce2aacce..cb9934546 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -436,7 +436,7 @@ exclude_lines = [ "if __name__ == .__main__.:", "if TYPE_CHECKING:", "@abstractmethod", - "\\.\\.\\.", # Ellipsis in function bodies + "^\\s*\\.\\.\\.$", # Ellipsis stub bodies (not `...` inside e.g. Callable[..., T]) ] [tool.coverage.html]