File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ from abc import ABC
2+
13from mpt_api_client .http .client import HTTPClient
24from mpt_api_client .registry import Registry , commerce
35from mpt_api_client .resources import OrderCollectionClient
46
57
6- class MPTClient :
7- """MPT API Client."""
8+ class MPTClientBase ( ABC ): # noqa: B024
9+ """MPT API Client Base ."""
810
911 def __init__ (
1012 self ,
@@ -19,6 +21,10 @@ def __init__(
1921 def __getattr__ (self , name ): # type: ignore[no-untyped-def]
2022 return self .registry .get (name )(client = self .mpt_client )
2123
24+
25+ class MPTClient (MPTClientBase ):
26+ """MPT API Client."""
27+
2228 @property
2329 def commerce (self ) -> "CommerceMpt" :
2430 """Commerce MPT API Client.
@@ -30,7 +36,7 @@ def commerce(self) -> "CommerceMpt":
3036 return CommerceMpt (mpt_client = self .mpt_client , registry = commerce )
3137
3238
33- class CommerceMpt (MPTClient ):
39+ class CommerceMpt (MPTClientBase ):
3440 """Commerce MPT API Client."""
3541
3642 @property
You can’t perform that action at this time.
0 commit comments