Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions hugr-py/src/hugr/passes/_composable_pass.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"""A Protocol for a composable pass.

Deprecated module alias for `hugr.passes.composable_pass`.
"""

from .composable_pass import (
ComposablePass,
ComposedPass,
PassName,
PassResult,
implement_pass_run,
)

__all__ = [
"PassName",
"PassResult",
"ComposedPass",
"ComposablePass",
"implement_pass_run",
]
5 changes: 1 addition & 4 deletions hugr-py/src/hugr/passes/composable_pass.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""A Protocol for a composable pass.

Currently unstable.
"""
"""A Protocol for a composable pass."""

from __future__ import annotations

Expand Down
7 changes: 6 additions & 1 deletion hugr-py/tests/test_passes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
import pytest

from hugr.hugr.base import Hugr
from hugr.passes.composable_pass import (

# Import some items from the deprecated module and some from the stable
# version to ensure the deprecated module is still functional.
from hugr.passes._composable_pass import (
ComposablePass,
ComposedPass,
)
from hugr.passes.composable_pass import (
PassResult,
implement_pass_run,
)
Expand Down
Loading