Skip to content

Commit

Permalink
add deprecated alias for `NoSuitableProvider -> ProviderNotFoundError…
Browse files Browse the repository at this point in the history
…` to root adaptix module
  • Loading branch information
zhPavel committed Jun 10, 2024
1 parent d759c7a commit 2e51e3a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/adaptix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from ._internal.morphing.name_layout.base import ExtraIn, ExtraOut
from ._internal.name_style import NameStyle
from ._internal.provider.facade.provider import bound
from ._internal.utils import Omittable, Omitted
from ._internal.utils import Omittable, Omitted, create_deprecated_alias_getter
from .provider import (
AggregateCannotProvide,
CannotProvide,
Expand Down Expand Up @@ -94,3 +94,10 @@
"load",
"dump",
)

__getattr__ = create_deprecated_alias_getter(
__name__,
{
"NoSuitableProvider": "ProviderNotFoundError",
},
)

0 comments on commit 2e51e3a

Please sign in to comment.