Skip to content

Commit

Permalink
chore(v3): add warning on pact.v3 import
Browse files Browse the repository at this point in the history
As the `pact.v3` module is still a work in progress, importing
it raises a warning.

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Mar 4, 2024
1 parent 9604839 commit 9c345f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pact/v3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@
considered deprecated, and will be removed in a future release.
"""

import warnings

from pact.v3.pact import Pact

__all__ = [
"Pact",
]

warnings.warn(
"The `pact.v3` module is not yet stable. Use at your own risk, and expect "
"breaking changes in future releases.",
stacklevel=2,
category=ImportWarning,
)

0 comments on commit 9c345f0

Please sign in to comment.