From a1786144fa0c9f5c2dd324965b30929c152457f4 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Wed, 15 May 2024 14:39:17 -0700 Subject: [PATCH] no coverage for monkeypatched properties --- src/numpydantic/monkeypatch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/numpydantic/monkeypatch.py b/src/numpydantic/monkeypatch.py index 8935701..05607e5 100644 --- a/src/numpydantic/monkeypatch.py +++ b/src/numpydantic/monkeypatch.py @@ -22,17 +22,17 @@ def patch_npytyping_perf() -> None: # make a new __module__ methods for the affected classes - def new_module_ndarray(cls) -> str: + def new_module_ndarray(cls) -> str: # pragma: no cover return cls._get_module(inspect.currentframe(), "nptyping.ndarray") - def new_module_recarray(cls) -> str: + def new_module_recarray(cls) -> str: # pragma: no cover return cls._get_module(inspect.currentframe(), "nptyping.recarray") - def new_module_dataframe(cls) -> str: + def new_module_dataframe(cls) -> str: # pragma: no cover return cls._get_module(inspect.currentframe(), "nptyping.pandas_.dataframe") # and a new _get_module method for the parent class - def new_get_module(cls, stack: FrameType, module: str) -> str: + def new_get_module(cls, stack: FrameType, module: str) -> str: # pragma: no cover return ( "typing" if inspect.getframeinfo(stack.f_back).function == "formatannotation"