From 41d679f1cebc0622f80713c9fc762d359bb0c150 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 25 Aug 2025 20:00:54 +0200 Subject: [PATCH] doc: remove private v1getattr This shouldn't show up in the docs. --- petab/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/petab/__init__.py b/petab/__init__.py index 031ca811..c6a40871 100644 --- a/petab/__init__.py +++ b/petab/__init__.py @@ -36,7 +36,7 @@ def __getattr__(name): return getattr(importlib.import_module("petab.v1"), name) -def v1getattr(name, module): +def _v1getattr(name, module): if name not in ("__path__", "__all__"): warn( f"Accessing `petab.{name}` is deprecated and will be removed in " @@ -67,7 +67,7 @@ def v1getattr(name, module): real_module = importlib.import_module( f"petab.v1.{'.'.join(v1_object_parts)}" ) - real_module.__getattr__ = partial(v1getattr, module=real_module) + real_module.__getattr__ = partial(_v1getattr, module=real_module) sys.modules[module_name] = real_module except ModuleNotFoundError: pass