From f44397502e3db2901a25f397275c4f9163711175 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Fri, 17 May 2024 18:16:28 -0700 Subject: [PATCH] don't do coverage for stuff that shouldn't happen during testing --- src/numpydantic/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/numpydantic/meta.py b/src/numpydantic/meta.py index 77a7e8d..671ab8d 100644 --- a/src/numpydantic/meta.py +++ b/src/numpydantic/meta.py @@ -60,5 +60,5 @@ def update_ndarray_stub() -> None: pyi_file = Path(ndarray.__file__).with_suffix(".pyi") with open(pyi_file, "w") as pyi: pyi.write(stub_string) - except Exception as e: + except Exception as e: # pragma: no cover warn(f"ndarray.pyi stub file could not be generated: {e}", stacklevel=1)