From b11460ee2e8f00f334cbd6462fdba2037a654b47 Mon Sep 17 00:00:00 2001 From: scivision Date: Sun, 26 Feb 2023 11:06:19 -0500 Subject: [PATCH] flake8: warnings.warn(stacklevel=2) --- src/pymap3d/ellipsoid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymap3d/ellipsoid.py b/src/pymap3d/ellipsoid.py index 006b8c1..fb555be 100644 --- a/src/pymap3d/ellipsoid.py +++ b/src/pymap3d/ellipsoid.py @@ -156,7 +156,7 @@ def from_name(cls, name: str) -> Ellipsoid | None: """Create an Ellipsoid from a name.""" if name not in cls.models: - warnings.warn(f"{name} model not implemented") + warnings.warn(f"{name} model not implemented", stacklevel=2) return None return cls(