runnable 0.32.0__tar.gz → 0.32.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.
Files changed (67) hide show
  1. {runnable-0.32.0 → runnable-0.32.1}/PKG-INFO +1 -1
  2. {runnable-0.32.0 → runnable-0.32.1}/pyproject.toml +1 -1
  3. {runnable-0.32.0 → runnable-0.32.1}/runnable/parameters.py +5 -2
  4. {runnable-0.32.0 → runnable-0.32.1}/.gitignore +0 -0
  5. {runnable-0.32.0 → runnable-0.32.1}/LICENSE +0 -0
  6. {runnable-0.32.0 → runnable-0.32.1}/README.md +0 -0
  7. {runnable-0.32.0 → runnable-0.32.1}/extensions/README.md +0 -0
  8. {runnable-0.32.0 → runnable-0.32.1}/extensions/__init__.py +0 -0
  9. {runnable-0.32.0 → runnable-0.32.1}/extensions/catalog/README.md +0 -0
  10. {runnable-0.32.0 → runnable-0.32.1}/extensions/catalog/any_path.py +0 -0
  11. {runnable-0.32.0 → runnable-0.32.1}/extensions/catalog/file_system.py +0 -0
  12. {runnable-0.32.0 → runnable-0.32.1}/extensions/catalog/minio.py +0 -0
  13. {runnable-0.32.0 → runnable-0.32.1}/extensions/catalog/pyproject.toml +0 -0
  14. {runnable-0.32.0 → runnable-0.32.1}/extensions/catalog/s3.py +0 -0
  15. {runnable-0.32.0 → runnable-0.32.1}/extensions/job_executor/README.md +0 -0
  16. {runnable-0.32.0 → runnable-0.32.1}/extensions/job_executor/__init__.py +0 -0
  17. {runnable-0.32.0 → runnable-0.32.1}/extensions/job_executor/k8s.py +0 -0
  18. {runnable-0.32.0 → runnable-0.32.1}/extensions/job_executor/k8s_job_spec.yaml +0 -0
  19. {runnable-0.32.0 → runnable-0.32.1}/extensions/job_executor/local.py +0 -0
  20. {runnable-0.32.0 → runnable-0.32.1}/extensions/job_executor/local_container.py +0 -0
  21. {runnable-0.32.0 → runnable-0.32.1}/extensions/job_executor/pyproject.toml +0 -0
  22. {runnable-0.32.0 → runnable-0.32.1}/extensions/nodes/README.md +0 -0
  23. {runnable-0.32.0 → runnable-0.32.1}/extensions/nodes/nodes.py +0 -0
  24. {runnable-0.32.0 → runnable-0.32.1}/extensions/nodes/pyproject.toml +0 -0
  25. {runnable-0.32.0 → runnable-0.32.1}/extensions/nodes/torch.py +0 -0
  26. {runnable-0.32.0 → runnable-0.32.1}/extensions/nodes/torch_config.py +0 -0
  27. {runnable-0.32.0 → runnable-0.32.1}/extensions/pipeline_executor/README.md +0 -0
  28. {runnable-0.32.0 → runnable-0.32.1}/extensions/pipeline_executor/__init__.py +0 -0
  29. {runnable-0.32.0 → runnable-0.32.1}/extensions/pipeline_executor/argo.py +0 -0
  30. {runnable-0.32.0 → runnable-0.32.1}/extensions/pipeline_executor/local.py +0 -0
  31. {runnable-0.32.0 → runnable-0.32.1}/extensions/pipeline_executor/local_container.py +0 -0
  32. {runnable-0.32.0 → runnable-0.32.1}/extensions/pipeline_executor/mocked.py +0 -0
  33. {runnable-0.32.0 → runnable-0.32.1}/extensions/pipeline_executor/pyproject.toml +0 -0
  34. {runnable-0.32.0 → runnable-0.32.1}/extensions/pipeline_executor/retry.py +0 -0
  35. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/README.md +0 -0
  36. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/__init__.py +0 -0
  37. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/any_path.py +0 -0
  38. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/chunked_fs.py +0 -0
  39. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/chunked_minio.py +0 -0
  40. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/db/implementation_FF.py +0 -0
  41. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/db/integration_FF.py +0 -0
  42. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/file_system.py +0 -0
  43. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/generic_chunked.py +0 -0
  44. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/minio.py +0 -0
  45. {runnable-0.32.0 → runnable-0.32.1}/extensions/run_log_store/pyproject.toml +0 -0
  46. {runnable-0.32.0 → runnable-0.32.1}/extensions/secrets/README.md +0 -0
  47. {runnable-0.32.0 → runnable-0.32.1}/extensions/secrets/dotenv.py +0 -0
  48. {runnable-0.32.0 → runnable-0.32.1}/extensions/secrets/pyproject.toml +0 -0
  49. {runnable-0.32.0 → runnable-0.32.1}/extensions/tasks/torch.py +0 -0
  50. {runnable-0.32.0 → runnable-0.32.1}/extensions/tasks/torch_config.py +0 -0
  51. {runnable-0.32.0 → runnable-0.32.1}/runnable/__init__.py +0 -0
  52. {runnable-0.32.0 → runnable-0.32.1}/runnable/catalog.py +0 -0
  53. {runnable-0.32.0 → runnable-0.32.1}/runnable/cli.py +0 -0
  54. {runnable-0.32.0 → runnable-0.32.1}/runnable/context.py +0 -0
  55. {runnable-0.32.0 → runnable-0.32.1}/runnable/datastore.py +0 -0
  56. {runnable-0.32.0 → runnable-0.32.1}/runnable/defaults.py +0 -0
  57. {runnable-0.32.0 → runnable-0.32.1}/runnable/entrypoints.py +0 -0
  58. {runnable-0.32.0 → runnable-0.32.1}/runnable/exceptions.py +0 -0
  59. {runnable-0.32.0 → runnable-0.32.1}/runnable/executor.py +0 -0
  60. {runnable-0.32.0 → runnable-0.32.1}/runnable/graph.py +0 -0
  61. {runnable-0.32.0 → runnable-0.32.1}/runnable/names.py +0 -0
  62. {runnable-0.32.0 → runnable-0.32.1}/runnable/nodes.py +0 -0
  63. {runnable-0.32.0 → runnable-0.32.1}/runnable/pickler.py +0 -0
  64. {runnable-0.32.0 → runnable-0.32.1}/runnable/sdk.py +0 -0
  65. {runnable-0.32.0 → runnable-0.32.1}/runnable/secrets.py +0 -0
  66. {runnable-0.32.0 → runnable-0.32.1}/runnable/tasks.py +0 -0
  67. {runnable-0.32.0 → runnable-0.32.1}/runnable/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runnable
3
- Version: 0.32.0
3
+ Version: 0.32.1
4
4
  Summary: Add your description here
5
5
  Author-email: "Vammi, Vijay" <vijay.vammi@astrazeneca.com>
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "runnable"
3
- version = "0.32.0"
3
+ version = "0.32.1"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -9,7 +9,7 @@ from pydantic import BaseModel, ConfigDict
9
9
  from typing_extensions import Callable
10
10
 
11
11
  from runnable import defaults
12
- from runnable.datastore import JsonParameter
12
+ from runnable.datastore import JsonParameter, ObjectParameter
13
13
  from runnable.defaults import TypeMapVariable
14
14
  from runnable.utils import remove_prefix
15
15
 
@@ -101,10 +101,13 @@ def filter_arguments_for_func(
101
101
  # default value is given in the function signature, nothing further to do.
102
102
  continue
103
103
 
104
+ param_value = params[name]
105
+
104
106
  if type(value.annotation) in [
105
107
  BaseModel,
106
108
  pydantic._internal._model_construction.ModelMetaclass,
107
- ]:
109
+ ] and not isinstance(param_value, ObjectParameter):
110
+ # Even if the annotation is a pydantic model, it can be passed as an object parameter
108
111
  # We try to cast it as a pydantic model if asked
109
112
  named_param = params[name].get_value()
110
113
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes