Skip to content

Commit 9c345f0

Browse files
committed
chore(v3): add warning on pact.v3 import
As the `pact.v3` module is still a work in progress, importing it raises a warning. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 9604839 commit 9c345f0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/pact/v3/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@
2020
considered deprecated, and will be removed in a future release.
2121
"""
2222

23+
import warnings
24+
2325
from pact.v3.pact import Pact
2426

2527
__all__ = [
2628
"Pact",
2729
]
30+
31+
warnings.warn(
32+
"The `pact.v3` module is not yet stable. Use at your own risk, and expect "
33+
"breaking changes in future releases.",
34+
stacklevel=2,
35+
category=ImportWarning,
36+
)

0 commit comments

Comments
 (0)