Skip to content

Commit cc33da2

Browse files
authored
Fix v2 import Deprecation warning (#346)
Fixes this nonsensical warning: > E DeprecationWarning: Accessing `petab.v2` is deprecated and will be removed in the next major release. Please use `petab.v1.v2` instead.
1 parent 6a433e0 commit cc33da2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

petab/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def __getattr__(name):
2323
return attr
2424
if name == "v1":
2525
return importlib.import_module("petab.v1")
26+
if name == "v2":
27+
return importlib.import_module("petab.v2")
2628
if name != "__path__":
2729
warn(
2830
f"Accessing `petab.{name}` is deprecated and will be removed in "

0 commit comments

Comments
 (0)