From 6cc3455b06e02eb263c5d2c59934d5cc96ef724c Mon Sep 17 00:00:00 2001 From: Andrew Emelyaneko Date: Mon, 28 Sep 2026 13:34:47 +0300 Subject: [PATCH] style: add module docstring and __all__ to calculator --- pipeline_test.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pipeline_test.py b/pipeline_test.py index de5514e..8e50afb 100644 --- a/pipeline_test.py +++ b/pipeline_test.py @@ -1,3 +1,12 @@ +"""A small arithmetic calculator. + +Provides the :func:`calculate` function which performs basic arithmetic +operations (+, -, *, /, **, //) with proper error handling. +""" + +__all__ = ["calculate"] + + def _check_div_zero(b: float | int, op: str) -> None: if op in ("/", "//") and b == 0: raise ZeroDivisionError("division by zero")