qctrl-workflow-client 3.1.0__tar.gz → 3.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qctrl-workflow-client
3
- Version: 3.1.0
3
+ Version: 3.1.1
4
4
  Summary: Q-CTRL Client
5
5
  Home-page: https://q-ctrl.com
6
6
  License: https://q-ctrl.com/terms
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "qctrl-workflow-client"
3
- version = "3.1.0"
3
+ version = "3.1.1"
4
4
  description = "Q-CTRL Client"
5
5
  license = "https://q-ctrl.com/terms"
6
6
  authors = ["Q-CTRL <support@q-ctrl.com>"]
@@ -88,7 +88,7 @@ qctrl-client = { version = "^9.1.0", source = "PyPI" }
88
88
  black = "^24.3.0"
89
89
  isort = "^5.12.0"
90
90
  pre-commit = "^3.3.3"
91
- pylint = "^2.14.4"
91
+ pylint = "^3.2.2"
92
92
  pytest = "^7.2.2"
93
93
  pytest-cov = "^4.0.0"
94
94
  pytest-mock = "^3.10.0"
@@ -11,7 +11,7 @@
11
11
  # distributed under the License is distributed on an "AS IS" BASIS. See the
12
12
  # License for the specific language.
13
13
 
14
- __version__ = "3.1.0"
14
+ __version__ = "3.1.1"
15
15
 
16
16
  from .defaults import (
17
17
  get_authenticated_client_for_product,
@@ -22,6 +22,8 @@ from warnings import warn
22
22
 
23
23
  from qctrlcommons.exceptions import QctrlArgumentsValueError
24
24
 
25
+ from qctrlworkflowclient.router.api import ApiRouter
26
+
25
27
 
26
28
  def core_workflow(
27
29
  get_config: Callable, workflow: str, formatter: Optional[Callable] = None
@@ -64,7 +66,8 @@ def core_workflow(
64
66
  config = get_config()
65
67
  router = config.get_router()
66
68
 
67
- router.set_async_state(kwargs.pop("is_async", False))
69
+ if isinstance(router, ApiRouter):
70
+ router.set_async_state(kwargs.pop("is_async", False))
68
71
 
69
72
  data = func(*args, **kwargs)
70
73
  result = router(workflow, data)