ob-metaflow-stubs 6.0.4.4rc0__py2.py3-none-any.whl → 6.0.4.6__py2.py3-none-any.whl

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 (261) hide show
  1. metaflow-stubs/__init__.pyi +732 -738
  2. metaflow-stubs/cards.pyi +2 -2
  3. metaflow-stubs/cli.pyi +2 -3
  4. metaflow-stubs/cli_components/__init__.pyi +2 -2
  5. metaflow-stubs/cli_components/utils.pyi +2 -2
  6. metaflow-stubs/client/__init__.pyi +2 -2
  7. metaflow-stubs/client/core.pyi +7 -6
  8. metaflow-stubs/client/filecache.pyi +3 -3
  9. metaflow-stubs/events.pyi +3 -3
  10. metaflow-stubs/exception.pyi +2 -2
  11. metaflow-stubs/flowspec.pyi +9 -9
  12. metaflow-stubs/generated_for.txt +1 -1
  13. metaflow-stubs/includefile.pyi +5 -5
  14. metaflow-stubs/{meta_files.pyi → info_file.pyi} +6 -2
  15. metaflow-stubs/metadata_provider/__init__.pyi +2 -2
  16. metaflow-stubs/metadata_provider/heartbeat.pyi +2 -2
  17. metaflow-stubs/metadata_provider/metadata.pyi +3 -3
  18. metaflow-stubs/metadata_provider/util.pyi +2 -2
  19. metaflow-stubs/metaflow_config.pyi +2 -6
  20. metaflow-stubs/metaflow_current.pyi +34 -34
  21. metaflow-stubs/metaflow_git.pyi +2 -2
  22. metaflow-stubs/mf_extensions/__init__.pyi +2 -2
  23. metaflow-stubs/mf_extensions/obcheckpoint/__init__.pyi +2 -2
  24. metaflow-stubs/mf_extensions/obcheckpoint/plugins/__init__.pyi +2 -2
  25. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/__init__.pyi +2 -2
  26. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/__init__.pyi +2 -2
  27. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/async_cards.pyi +2 -2
  28. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/deco_injection_mixin.pyi +2 -2
  29. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/card_utils/extra_components.pyi +3 -3
  30. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/__init__.pyi +2 -2
  31. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/cards/__init__.pyi +2 -2
  32. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/cards/checkpoint_lister.pyi +4 -4
  33. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/cards/lineage_card.pyi +2 -2
  34. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/checkpoint_storage.pyi +5 -5
  35. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/constructors.pyi +2 -2
  36. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/core.pyi +3 -3
  37. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/decorator.pyi +4 -4
  38. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/exceptions.pyi +2 -2
  39. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/final_api.pyi +2 -2
  40. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/checkpoints/lineage.pyi +2 -2
  41. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/__init__.pyi +2 -2
  42. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/context.pyi +3 -3
  43. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/core.pyi +2 -2
  44. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/decorator.pyi +2 -2
  45. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/exceptions.pyi +2 -2
  46. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/task_utils.pyi +3 -3
  47. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastore/utils.pyi +2 -2
  48. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/datastructures.pyi +3 -3
  49. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/exceptions.pyi +2 -2
  50. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/hf_hub/__init__.pyi +2 -2
  51. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/hf_hub/decorator.pyi +3 -3
  52. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/__init__.pyi +2 -2
  53. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/core.pyi +3 -3
  54. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/exceptions.pyi +2 -2
  55. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/modeling_utils/model_storage.pyi +4 -4
  56. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/__init__.pyi +2 -2
  57. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/flowspec_utils.pyi +2 -2
  58. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/general.pyi +2 -2
  59. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/identity_utils.pyi +2 -2
  60. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/serialization_handler/__init__.pyi +2 -2
  61. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/serialization_handler/base.pyi +2 -2
  62. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/serialization_handler/tar.pyi +3 -3
  63. metaflow-stubs/mf_extensions/obcheckpoint/plugins/machine_learning_utilities/utils/tar_utils.pyi +3 -3
  64. metaflow-stubs/mf_extensions/outerbounds/__init__.pyi +2 -2
  65. metaflow-stubs/mf_extensions/outerbounds/plugins/__init__.pyi +2 -2
  66. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/__init__.pyi +2 -2
  67. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/__init__.pyi +2 -2
  68. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/_state_machine.pyi +2 -2
  69. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/_vendor/__init__.pyi +2 -2
  70. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/_vendor/spinner/__init__.pyi +2 -2
  71. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/_vendor/spinner/spinners.pyi +2 -2
  72. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/app_cli.pyi +3 -3
  73. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/app_config.pyi +3 -3
  74. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/capsule.pyi +4 -4
  75. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/click_importer.pyi +2 -2
  76. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/code_package/__init__.pyi +2 -2
  77. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/code_package/code_packager.pyi +2 -2
  78. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/__init__.pyi +2 -2
  79. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/cli_generator.pyi +2 -2
  80. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/config_utils.pyi +5 -5
  81. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/schema_export.pyi +2 -2
  82. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/typed_configs.pyi +3 -3
  83. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/config/unified_config.pyi +3 -3
  84. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/dependencies.pyi +3 -3
  85. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/deployer.pyi +5 -5
  86. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/experimental/__init__.pyi +2 -2
  87. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/perimeters.pyi +2 -2
  88. metaflow-stubs/mf_extensions/outerbounds/plugins/apps/core/utils.pyi +4 -4
  89. metaflow-stubs/mf_extensions/outerbounds/plugins/aws/__init__.pyi +2 -2
  90. metaflow-stubs/mf_extensions/outerbounds/plugins/aws/assume_role_decorator.pyi +8 -12
  91. metaflow-stubs/mf_extensions/outerbounds/plugins/card_utilities/__init__.pyi +2 -2
  92. metaflow-stubs/mf_extensions/outerbounds/plugins/card_utilities/async_cards.pyi +2 -2
  93. metaflow-stubs/mf_extensions/outerbounds/plugins/card_utilities/injector.pyi +2 -2
  94. metaflow-stubs/mf_extensions/outerbounds/plugins/checkpoint_datastores/__init__.pyi +2 -2
  95. metaflow-stubs/mf_extensions/outerbounds/plugins/checkpoint_datastores/coreweave.pyi +11 -13
  96. metaflow-stubs/mf_extensions/outerbounds/plugins/checkpoint_datastores/nebius.pyi +11 -13
  97. metaflow-stubs/mf_extensions/outerbounds/plugins/fast_bakery/__init__.pyi +2 -2
  98. metaflow-stubs/mf_extensions/outerbounds/plugins/fast_bakery/baker.pyi +4 -4
  99. metaflow-stubs/mf_extensions/outerbounds/plugins/fast_bakery/docker_environment.pyi +3 -3
  100. metaflow-stubs/mf_extensions/outerbounds/plugins/fast_bakery/fast_bakery.pyi +2 -2
  101. metaflow-stubs/mf_extensions/outerbounds/plugins/kubernetes/__init__.pyi +2 -2
  102. metaflow-stubs/mf_extensions/outerbounds/plugins/kubernetes/pod_killer.pyi +2 -2
  103. metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/__init__.pyi +2 -2
  104. metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/constants.pyi +2 -2
  105. metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/exceptions.pyi +2 -2
  106. metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/ollama.pyi +2 -2
  107. metaflow-stubs/mf_extensions/outerbounds/plugins/ollama/status_card.pyi +2 -2
  108. metaflow-stubs/mf_extensions/outerbounds/plugins/snowflake/__init__.pyi +2 -2
  109. metaflow-stubs/mf_extensions/outerbounds/plugins/snowflake/snowflake.pyi +2 -2
  110. metaflow-stubs/mf_extensions/outerbounds/profilers/__init__.pyi +2 -2
  111. metaflow-stubs/mf_extensions/outerbounds/profilers/gpu.pyi +2 -2
  112. metaflow-stubs/mf_extensions/outerbounds/remote_config.pyi +2 -2
  113. metaflow-stubs/mf_extensions/outerbounds/toplevel/__init__.pyi +2 -2
  114. metaflow-stubs/mf_extensions/outerbounds/toplevel/global_aliases_for_metaflow_package.pyi +2 -2
  115. metaflow-stubs/multicore_utils.pyi +2 -2
  116. metaflow-stubs/ob_internal.pyi +2 -2
  117. metaflow-stubs/parameters.pyi +5 -5
  118. metaflow-stubs/plugins/__init__.pyi +14 -14
  119. metaflow-stubs/plugins/airflow/__init__.pyi +2 -2
  120. metaflow-stubs/plugins/airflow/airflow_utils.pyi +2 -2
  121. metaflow-stubs/plugins/airflow/exception.pyi +2 -2
  122. metaflow-stubs/plugins/airflow/sensors/__init__.pyi +2 -2
  123. metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +2 -2
  124. metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +2 -2
  125. metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +2 -2
  126. metaflow-stubs/plugins/argo/__init__.pyi +2 -2
  127. metaflow-stubs/plugins/argo/argo_client.pyi +2 -2
  128. metaflow-stubs/plugins/argo/argo_events.pyi +2 -2
  129. metaflow-stubs/plugins/argo/argo_workflows.pyi +6 -6
  130. metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +3 -3
  131. metaflow-stubs/plugins/argo/argo_workflows_deployer.pyi +4 -4
  132. metaflow-stubs/plugins/argo/argo_workflows_deployer_objects.pyi +3 -3
  133. metaflow-stubs/plugins/argo/exit_hooks.pyi +4 -4
  134. metaflow-stubs/plugins/aws/__init__.pyi +2 -2
  135. metaflow-stubs/plugins/aws/aws_client.pyi +2 -2
  136. metaflow-stubs/plugins/aws/aws_utils.pyi +2 -2
  137. metaflow-stubs/plugins/aws/batch/__init__.pyi +2 -2
  138. metaflow-stubs/plugins/aws/batch/batch.pyi +4 -4
  139. metaflow-stubs/plugins/aws/batch/batch_client.pyi +2 -2
  140. metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +2 -4
  141. metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +2 -2
  142. metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +4 -4
  143. metaflow-stubs/plugins/aws/step_functions/__init__.pyi +2 -2
  144. metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +2 -2
  145. metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +2 -2
  146. metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +3 -3
  147. metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +2 -2
  148. metaflow-stubs/plugins/aws/step_functions/step_functions_deployer.pyi +3 -3
  149. metaflow-stubs/plugins/aws/step_functions/step_functions_deployer_objects.pyi +3 -3
  150. metaflow-stubs/plugins/azure/__init__.pyi +2 -2
  151. metaflow-stubs/plugins/azure/azure_credential.pyi +2 -2
  152. metaflow-stubs/plugins/azure/azure_exceptions.pyi +2 -2
  153. metaflow-stubs/plugins/azure/azure_secret_manager_secrets_provider.pyi +4 -4
  154. metaflow-stubs/plugins/azure/azure_utils.pyi +2 -2
  155. metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +2 -2
  156. metaflow-stubs/plugins/azure/includefile_support.pyi +2 -2
  157. metaflow-stubs/plugins/cards/__init__.pyi +2 -2
  158. metaflow-stubs/plugins/cards/card_client.pyi +3 -3
  159. metaflow-stubs/plugins/cards/card_creator.pyi +2 -2
  160. metaflow-stubs/plugins/cards/card_datastore.pyi +2 -2
  161. metaflow-stubs/plugins/cards/card_decorator.pyi +5 -3
  162. metaflow-stubs/plugins/cards/card_modules/__init__.pyi +2 -2
  163. metaflow-stubs/plugins/cards/card_modules/basic.pyi +3 -3
  164. metaflow-stubs/plugins/cards/card_modules/card.pyi +2 -2
  165. metaflow-stubs/plugins/cards/card_modules/components.pyi +4 -4
  166. metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +2 -2
  167. metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +2 -2
  168. metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +2 -2
  169. metaflow-stubs/plugins/cards/card_resolver.pyi +2 -2
  170. metaflow-stubs/plugins/cards/component_serializer.pyi +2 -2
  171. metaflow-stubs/plugins/cards/exception.pyi +2 -2
  172. metaflow-stubs/plugins/catch_decorator.pyi +2 -2
  173. metaflow-stubs/plugins/datatools/__init__.pyi +2 -2
  174. metaflow-stubs/plugins/datatools/local.pyi +2 -2
  175. metaflow-stubs/plugins/datatools/s3/__init__.pyi +2 -2
  176. metaflow-stubs/plugins/datatools/s3/s3.pyi +4 -4
  177. metaflow-stubs/plugins/datatools/s3/s3tail.pyi +2 -2
  178. metaflow-stubs/plugins/datatools/s3/s3util.pyi +2 -2
  179. metaflow-stubs/plugins/debug_logger.pyi +2 -2
  180. metaflow-stubs/plugins/debug_monitor.pyi +2 -2
  181. metaflow-stubs/plugins/environment_decorator.pyi +2 -2
  182. metaflow-stubs/plugins/events_decorator.pyi +2 -2
  183. metaflow-stubs/plugins/exit_hook/__init__.pyi +2 -2
  184. metaflow-stubs/plugins/exit_hook/exit_hook_decorator.pyi +2 -2
  185. metaflow-stubs/plugins/frameworks/__init__.pyi +2 -2
  186. metaflow-stubs/plugins/frameworks/pytorch.pyi +2 -2
  187. metaflow-stubs/plugins/gcp/__init__.pyi +2 -2
  188. metaflow-stubs/plugins/gcp/gcp_secret_manager_secrets_provider.pyi +4 -4
  189. metaflow-stubs/plugins/gcp/gs_exceptions.pyi +2 -2
  190. metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +2 -2
  191. metaflow-stubs/plugins/gcp/gs_utils.pyi +2 -2
  192. metaflow-stubs/plugins/gcp/includefile_support.pyi +2 -2
  193. metaflow-stubs/plugins/kubernetes/__init__.pyi +2 -2
  194. metaflow-stubs/plugins/kubernetes/kube_utils.pyi +3 -3
  195. metaflow-stubs/plugins/kubernetes/kubernetes.pyi +4 -4
  196. metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +2 -2
  197. metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +2 -4
  198. metaflow-stubs/plugins/kubernetes/kubernetes_jobsets.pyi +2 -2
  199. metaflow-stubs/plugins/kubernetes/spot_monitor_sidecar.pyi +2 -2
  200. metaflow-stubs/plugins/ollama/__init__.pyi +2 -2
  201. metaflow-stubs/plugins/parallel_decorator.pyi +3 -3
  202. metaflow-stubs/plugins/perimeters.pyi +2 -2
  203. metaflow-stubs/plugins/project_decorator.pyi +2 -2
  204. metaflow-stubs/plugins/pypi/__init__.pyi +2 -2
  205. metaflow-stubs/plugins/pypi/conda_decorator.pyi +8 -5
  206. metaflow-stubs/plugins/pypi/conda_environment.pyi +5 -6
  207. metaflow-stubs/plugins/pypi/parsers.pyi +2 -2
  208. metaflow-stubs/plugins/pypi/pypi_decorator.pyi +4 -4
  209. metaflow-stubs/plugins/pypi/pypi_environment.pyi +2 -2
  210. metaflow-stubs/plugins/pypi/utils.pyi +2 -2
  211. metaflow-stubs/plugins/resources_decorator.pyi +2 -2
  212. metaflow-stubs/plugins/retry_decorator.pyi +2 -2
  213. metaflow-stubs/plugins/secrets/__init__.pyi +3 -3
  214. metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +3 -3
  215. metaflow-stubs/plugins/secrets/secrets_decorator.pyi +2 -2
  216. metaflow-stubs/plugins/secrets/secrets_func.pyi +2 -2
  217. metaflow-stubs/plugins/secrets/secrets_spec.pyi +2 -2
  218. metaflow-stubs/plugins/secrets/utils.pyi +2 -2
  219. metaflow-stubs/plugins/snowflake/__init__.pyi +2 -2
  220. metaflow-stubs/plugins/storage_executor.pyi +2 -2
  221. metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +3 -3
  222. metaflow-stubs/plugins/timeout_decorator.pyi +2 -2
  223. metaflow-stubs/plugins/torchtune/__init__.pyi +2 -2
  224. metaflow-stubs/plugins/uv/__init__.pyi +2 -2
  225. metaflow-stubs/plugins/uv/uv_environment.pyi +2 -3
  226. metaflow-stubs/profilers/__init__.pyi +2 -2
  227. metaflow-stubs/pylint_wrapper.pyi +2 -2
  228. metaflow-stubs/runner/__init__.pyi +2 -2
  229. metaflow-stubs/runner/deployer.pyi +30 -30
  230. metaflow-stubs/runner/deployer_impl.pyi +3 -3
  231. metaflow-stubs/runner/metaflow_runner.pyi +5 -5
  232. metaflow-stubs/runner/nbdeploy.pyi +2 -2
  233. metaflow-stubs/runner/nbrun.pyi +2 -2
  234. metaflow-stubs/runner/subprocess_manager.pyi +2 -3
  235. metaflow-stubs/runner/utils.pyi +3 -3
  236. metaflow-stubs/system/__init__.pyi +2 -2
  237. metaflow-stubs/system/system_logger.pyi +3 -3
  238. metaflow-stubs/system/system_monitor.pyi +2 -2
  239. metaflow-stubs/tagging_util.pyi +2 -2
  240. metaflow-stubs/tuple_util.pyi +2 -2
  241. metaflow-stubs/user_configs/__init__.pyi +3 -2
  242. metaflow-stubs/user_configs/config_decorators.pyi +251 -0
  243. metaflow-stubs/user_configs/config_options.pyi +6 -5
  244. metaflow-stubs/user_configs/config_parameters.pyi +9 -7
  245. {ob_metaflow_stubs-6.0.4.4rc0.dist-info → ob_metaflow_stubs-6.0.4.6.dist-info}/METADATA +1 -1
  246. ob_metaflow_stubs-6.0.4.6.dist-info/RECORD +249 -0
  247. metaflow-stubs/packaging_sys/__init__.pyi +0 -430
  248. metaflow-stubs/packaging_sys/backend.pyi +0 -73
  249. metaflow-stubs/packaging_sys/distribution_support.pyi +0 -57
  250. metaflow-stubs/packaging_sys/tar_backend.pyi +0 -53
  251. metaflow-stubs/packaging_sys/utils.pyi +0 -26
  252. metaflow-stubs/packaging_sys/v1.pyi +0 -145
  253. metaflow-stubs/user_decorators/__init__.pyi +0 -15
  254. metaflow-stubs/user_decorators/common.pyi +0 -38
  255. metaflow-stubs/user_decorators/mutable_flow.pyi +0 -223
  256. metaflow-stubs/user_decorators/mutable_step.pyi +0 -152
  257. metaflow-stubs/user_decorators/user_flow_decorator.pyi +0 -137
  258. metaflow-stubs/user_decorators/user_step_decorator.pyi +0 -323
  259. ob_metaflow_stubs-6.0.4.4rc0.dist-info/RECORD +0 -260
  260. {ob_metaflow_stubs-6.0.4.4rc0.dist-info → ob_metaflow_stubs-6.0.4.6.dist-info}/WHEEL +0 -0
  261. {ob_metaflow_stubs-6.0.4.4rc0.dist-info → ob_metaflow_stubs-6.0.4.6.dist-info}/top_level.txt +0 -0
@@ -1,430 +0,0 @@
1
- ######################################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.16.1.1+obcheckpoint(0.2.4);ob(v1) #
4
- # Generated on 2025-07-15T21:03:18.185414 #
5
- ######################################################################################################
6
-
7
- from __future__ import annotations
8
-
9
- import enum
10
- import typing
11
- import metaflow
12
- if typing.TYPE_CHECKING:
13
- import typing
14
- import metaflow.packaging_sys.backend
15
- import metaflow.extension_support.metadata
16
- import metaflow.packaging_sys.tar_backend
17
- import enum
18
- import metaflow.packaging_sys
19
-
20
- from . import distribution_support as distribution_support
21
- from .distribution_support import PackagedDistributionFinder as PackagedDistributionFinder
22
- from . import backend as backend
23
- from .backend import PackagingBackend as PackagingBackend
24
- from . import tar_backend as tar_backend
25
- from .tar_backend import TarPackagingBackend as TarPackagingBackend
26
- from . import utils as utils
27
- from . import v1 as v1
28
-
29
- TYPE_CHECKING: bool
30
-
31
- MFCONTENT_MARKER: str
32
-
33
- class ContentType(enum.IntEnum, metaclass=enum.EnumType):
34
- def __new__(cls, value):
35
- ...
36
- ...
37
-
38
- class MetaflowCodeContent(object, metaclass=type):
39
- """
40
- Base class for all Metaflow code packages (non user code).
41
-
42
- A Metaflow code package, at a minimum, contains:
43
- - a special INFO file (containing a bunch of metadata about the Metaflow environment)
44
- - a special CONFIG file (containing user configurations for the flow)
45
-
46
- Declare all other MetaflowCodeContent subclasses (versions) here to handle just the functions
47
- that are not implemented here. In a *separate* file, declare any other
48
- function for that specific version.
49
-
50
- NOTE: This file must remain as dependency-free as possible as it is loaded *very*
51
- early on. This is why you must decleare a *separate* class implementing what you want
52
- the Metaflow code package (non user) to do.
53
- """
54
- @classmethod
55
- def get_info(cls) -> typing.Optional[typing.Dict[str, typing.Any]]:
56
- """
57
- Get the content of the special INFO file on the local filesystem after
58
- the code package has been expanded.
59
-
60
- Returns
61
- -------
62
- Optional[Dict[str, Any]]
63
- The content of the INFO file -- None if there is no such file.
64
- """
65
- ...
66
- @classmethod
67
- def get_config(cls) -> typing.Optional[typing.Dict[str, typing.Any]]:
68
- """
69
- Get the content of the special CONFIG file on the local filesystem after
70
- the code package has been expanded.
71
-
72
- Returns
73
- -------
74
- Optional[Dict[str, Any]]
75
- The content of the CONFIG file -- None if there is no such file.
76
- """
77
- ...
78
- @classmethod
79
- def get_filename(cls, filename: str, content_type: ContentType) -> typing.Optional[str]:
80
- """
81
- Get the path to a file extracted from the archive. The filename is the filename
82
- passed in when creating the archive and content_type is the type of the content.
83
-
84
- This function will return the local path where the file can be found after
85
- the package has been extracted.
86
-
87
- Parameters
88
- ----------
89
- filename: str
90
- The name of the file on the filesystem.
91
- content_type: ContentType
92
-
93
- Returns
94
- -------
95
- str
96
- The path to the file on the local filesystem or None if not found.
97
- """
98
- ...
99
- @classmethod
100
- def get_env_vars_for_packaged_metaflow(cls, dest_dir: str) -> typing.Optional[typing.Dict[str, str]]:
101
- """
102
- Get the environment variables that are needed to run Metaflow when it is
103
- packaged. This is typically used to set the PYTHONPATH to include the
104
- directory where the Metaflow code package has been extracted.
105
-
106
- Returns
107
- -------
108
- Optional[Dict[str, str]]
109
- The environment variables that are needed to run Metaflow when it is
110
- packaged -- None if there are no such variables (not packaged for example)
111
- """
112
- ...
113
- @classmethod
114
- def get_archive_info(cls, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
115
- """
116
- Get the content of the special INFO file in the archive.
117
-
118
- Returns
119
- -------
120
- Optional[Dict[str, Any]]
121
- The content of the INFO file -- None if there is no such file.
122
- """
123
- ...
124
- @classmethod
125
- def get_archive_config(cls, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
126
- """
127
- Get the content of the special CONFIG file in the archive.
128
-
129
- Returns
130
- -------
131
- Optional[Dict[str, Any]]
132
- The content of the CONFIG file -- None if there is no such file.
133
- """
134
- ...
135
- @classmethod
136
- def get_archive_filename(cls, archive: typing.Any, filename: str, content_type: ContentType, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[str]:
137
- """
138
- Get the filename of the archive. This does not do any extraction but simply
139
- returns where, in the archive, the file is located. This is the equivalent of
140
- get_filename but for files not extracted yet.
141
-
142
- Parameters
143
- ----------
144
- archive: Any
145
- The archive to get the filename from.
146
- filename: str
147
- The name of the file in the archive.
148
- content_type: ContentType
149
- The type of the content (e.g., code, other, etc.).
150
- packaging_backend: Type[PackagingBackend], default TarPackagingBackend
151
- The packaging backend to use.
152
-
153
- Returns
154
- -------
155
- str
156
- The filename of the archive or None if not found.
157
- """
158
- ...
159
- @classmethod
160
- def get_archive_content_names(cls, archive: typing.Any, content_types: typing.Optional[int] = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[str]:
161
- ...
162
- @classmethod
163
- def get_distribution_finder(cls) -> typing.Optional["metaflow.extension_support.metadata.DistributionFinder"]:
164
- """
165
- Get the distribution finder for the Metaflow code package (if applicable).
166
-
167
- Some packages will include distribution information to "pretend" that some packages
168
- are actually distributions even if we just include them in the code package.
169
-
170
- Returns
171
- -------
172
- Optional["metaflow.extension_support.metadata.DistributionFinder"]
173
- The distribution finder for the Metaflow code package -- None if there is no
174
- such finder.
175
- """
176
- ...
177
- @classmethod
178
- def get_post_extract_env_vars(cls, version_id: int, dest_dir: str = '.') -> typing.Dict[str, str]:
179
- """
180
- Get the post-extract environment variables that are needed to access the content
181
- that has been extracted into dest_dir.
182
-
183
- This will typically involve setting PYTHONPATH.
184
-
185
- Parameters
186
- ----------
187
- version_id: int
188
- The version of MetaflowCodeContent for this package.
189
- dest_dir: str, default "."
190
- The directory where the content has been extracted to.
191
-
192
- Returns
193
- -------
194
- Dict[str, str]
195
- The post-extract environment variables that are needed to access the content
196
- that has been extracted into extracted_dir.
197
- """
198
- ...
199
- @classmethod
200
- def get_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
201
- ...
202
- @classmethod
203
- def get_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
204
- ...
205
- @classmethod
206
- def get_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], filename: str, content_type: ContentType) -> typing.Optional[str]:
207
- ...
208
- @classmethod
209
- def get_distribution_finder_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional["metaflow.extension_support.metadata.DistributionFinder"]:
210
- ...
211
- @classmethod
212
- def get_archive_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
213
- ...
214
- @classmethod
215
- def get_archive_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
216
- ...
217
- @classmethod
218
- def get_archive_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, filename: str, content_type: ContentType, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[str]:
219
- ...
220
- @classmethod
221
- def get_archive_content_names_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, content_types: typing.Optional[int] = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[str]:
222
- ...
223
- @classmethod
224
- def get_post_extract_env_vars_impl(cls, dest_dir: str) -> typing.Dict[str, str]:
225
- ...
226
- @classmethod
227
- def __init_subclass__(cls, version_id, **kwargs):
228
- ...
229
- def get_excluded_tl_entries(self) -> typing.List[str]:
230
- """
231
- When packaging Metaflow from within an executing Metaflow flow, we need to
232
- exclude the files that are inserted by this content from being packaged (possibly).
233
-
234
- Use this function to return these files or top-level directories.
235
-
236
- Returns
237
- -------
238
- List[str]
239
- Files or directories to exclude
240
- """
241
- ...
242
- def content_names(self, content_types: typing.Optional[int] = None) -> typing.Generator[typing.Tuple[str, str], None, None]:
243
- """
244
- Detailed list of the content of this MetaflowCodeContent. This will list all files
245
- (or non files -- for the INFO or CONFIG data for example) present in the archive.
246
-
247
- Parameters
248
- ----------
249
- content_types : Optional[int]
250
- The type of content to get the names of. If None, all content is returned.
251
-
252
- Yields
253
- ------
254
- Generator[Tuple[str, str], None, None]
255
- Path on the filesystem and the name in the archive
256
- """
257
- ...
258
- def contents(self, content_types: typing.Optional[int] = None) -> typing.Generator[typing.Tuple[typing.Union[bytes, str], str], None, None]:
259
- """
260
- Very similar to content_names but returns the content of the non-files
261
- as well as bytes. For files, identical output as content_names
262
-
263
- Parameters
264
- ----------
265
- content_types : Optional[int]
266
- The type of content to get the content of. If None, all content is returned.
267
-
268
- Yields
269
- ------
270
- Generator[Tuple[Union[str, bytes], str], None, None]
271
- Content of the MF content
272
- """
273
- ...
274
- def show(self) -> str:
275
- """
276
- Returns a more human-readable string representation of the content of this
277
- MetaflowCodeContent. This will not, for example, list all files but summarize what
278
- is included at a more high level.
279
-
280
- Returns
281
- -------
282
- str
283
- A human-readable string representation of the content of this MetaflowCodeContent
284
- """
285
- ...
286
- def add_info(self, info: typing.Dict[str, typing.Any]):
287
- """
288
- Add the content of the INFO file to the Metaflow content
289
-
290
- Parameters
291
- ----------
292
- info: Dict[str, Any]
293
- The content of the INFO file
294
- """
295
- ...
296
- def add_config(self, config: typing.Dict[str, typing.Any]):
297
- """
298
- Add the content of the CONFIG file to the Metaflow content
299
-
300
- Parameters
301
- ----------
302
- config: Dict[str, Any]
303
- The content of the CONFIG file
304
- """
305
- ...
306
- def add_module(self, module_path: module):
307
- """
308
- Add a python module to the Metaflow content
309
-
310
- Parameters
311
- ----------
312
- module_path: ModuleType
313
- The module to add
314
- """
315
- ...
316
- def add_code_file(self, file_path: str, file_name: str):
317
- """
318
- Add a code file to the Metaflow content
319
-
320
- Parameters
321
- ----------
322
- file_path: str
323
- The path to the code file to add (on the filesystem)
324
- file_name: str
325
- The path in the archive to add the code file to
326
- """
327
- ...
328
- def add_other_file(self, file_path: str, file_name: str):
329
- """
330
- Add a non-python file to the Metaflow content
331
-
332
- Parameters
333
- ----------
334
- file_path: str
335
- The path to the file to add (on the filesystem)
336
- file_name: str
337
- The path in the archive to add the file to
338
- """
339
- ...
340
- def get_package_version(self) -> int:
341
- """
342
- Get the version of MetaflowCodeContent for this package.
343
- """
344
- ...
345
- ...
346
-
347
- class MetaflowCodeContentV0(MetaflowCodeContent, metaclass=type):
348
- @classmethod
349
- def get_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
350
- ...
351
- @classmethod
352
- def get_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
353
- ...
354
- @classmethod
355
- def get_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], filename: str, content_type: ContentType) -> typing.Optional[str]:
356
- """
357
- For V0, the filename is simply the filename passed in.
358
- """
359
- ...
360
- @classmethod
361
- def get_distribution_finder_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional["metaflow.extension_support.metadata.DistributionFinder"]:
362
- ...
363
- @classmethod
364
- def get_archive_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
365
- ...
366
- @classmethod
367
- def get_archive_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
368
- ...
369
- @classmethod
370
- def get_archive_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, filename: str, content_type: ContentType, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> str:
371
- ...
372
- @classmethod
373
- def get_archive_content_names_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, content_types: typing.Optional[int] = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[str]:
374
- """
375
- For V0, we use a static list of known files to classify the content
376
- """
377
- ...
378
- @classmethod
379
- def get_post_extract_env_vars_impl(cls, dest_dir: str) -> typing.Dict[str, str]:
380
- ...
381
- def get_excluded_tl_entries(self) -> typing.List[str]:
382
- """
383
- When packaging Metaflow from within an executing Metaflow flow, we need to
384
- exclude the files that are inserted by this content from being packaged (possibly).
385
-
386
- Use this function to return these files or top-level directories.
387
-
388
- Returns
389
- -------
390
- List[str]
391
- Files or directories to exclude
392
- """
393
- ...
394
- ...
395
-
396
- class MetaflowCodeContentV1Base(MetaflowCodeContent, metaclass=type):
397
- @classmethod
398
- def __init_subclass__(cls, **kwargs):
399
- ...
400
- def __init__(self, code_dir: str, other_dir: str):
401
- ...
402
- @classmethod
403
- def get_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
404
- ...
405
- @classmethod
406
- def get_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional[typing.Dict[str, typing.Any]]:
407
- ...
408
- @classmethod
409
- def get_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], filename: str, content_type: ContentType) -> typing.Optional[str]:
410
- ...
411
- @classmethod
412
- def get_distribution_finder_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]]) -> typing.Optional["metaflow.extension_support.metadata.DistributionFinder"]:
413
- ...
414
- @classmethod
415
- def get_archive_info_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
416
- ...
417
- @classmethod
418
- def get_archive_config_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Optional[typing.Dict[str, typing.Any]]:
419
- ...
420
- @classmethod
421
- def get_archive_filename_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, filename: str, content_type: ContentType, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> str:
422
- ...
423
- @classmethod
424
- def get_archive_content_names_impl(cls, mfcontent_info: typing.Optional[typing.Dict[str, typing.Any]], archive: typing.Any, content_types: typing.Optional[int] = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[str]:
425
- ...
426
- @classmethod
427
- def get_post_extract_env_vars_impl(cls, dest_dir: str) -> typing.Dict[str, str]:
428
- ...
429
- ...
430
-
@@ -1,73 +0,0 @@
1
- ######################################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.16.1.1+obcheckpoint(0.2.4);ob(v1) #
4
- # Generated on 2025-07-15T21:03:18.218873 #
5
- ######################################################################################################
6
-
7
- from __future__ import annotations
8
-
9
- import typing
10
- import abc
11
- if typing.TYPE_CHECKING:
12
- import typing
13
- import io
14
- import abc
15
-
16
-
17
- class PackagingBackend(abc.ABC, metaclass=abc.ABCMeta):
18
- @classmethod
19
- def __init_subclass__(cls, **kwargs):
20
- ...
21
- @classmethod
22
- def get_backend(cls, name: str) -> "PackagingBackend":
23
- ...
24
- @classmethod
25
- def backend_type(cls) -> str:
26
- ...
27
- @classmethod
28
- def get_extract_commands(cls, archive_name: str, dest_dir: str) -> typing.List[str]:
29
- ...
30
- def __init__(self):
31
- ...
32
- def create(self) -> "PackagingBackend":
33
- ...
34
- def add_file(self, filename: str, arcname: typing.Optional[str] = None):
35
- ...
36
- def add_data(self, data: io.BytesIO, arcname: str):
37
- ...
38
- def close(self):
39
- ...
40
- def get_blob(self) -> typing.Union[bytes, bytearray, None]:
41
- ...
42
- @classmethod
43
- def cls_open(cls, content: typing.IO[bytes]) -> typing.Any:
44
- """
45
- Open the archive from the given content.
46
- """
47
- ...
48
- @classmethod
49
- def cls_has_member(cls, archive: typing.Any, name: str) -> bool:
50
- ...
51
- @classmethod
52
- def cls_get_member(cls, archive: typing.Any, name: str) -> typing.Optional[bytes]:
53
- ...
54
- @classmethod
55
- def cls_extract_members(cls, archive: typing.Any, members: typing.Optional[typing.List[str]] = None, dest_dir: str = '.'):
56
- ...
57
- @classmethod
58
- def cls_list_members(cls, archive: typing.Any) -> typing.Optional[typing.List[str]]:
59
- ...
60
- def has_member(self, name: str) -> bool:
61
- ...
62
- def get_member(self, name: str) -> typing.Optional[bytes]:
63
- ...
64
- def extract_members(self, members: typing.Optional[typing.List[str]] = None, dest_dir: str = '.'):
65
- ...
66
- def list_members(self) -> typing.Optional[typing.List[str]]:
67
- ...
68
- def __enter__(self):
69
- ...
70
- def __exit__(self, exc_type, exc_value, traceback):
71
- ...
72
- ...
73
-
@@ -1,57 +0,0 @@
1
- ######################################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.16.1.1+obcheckpoint(0.2.4);ob(v1) #
4
- # Generated on 2025-07-15T21:03:18.218070 #
5
- ######################################################################################################
6
-
7
- from __future__ import annotations
8
-
9
- import importlib
10
- import typing
11
- import abc
12
- if typing.TYPE_CHECKING:
13
- import importlib.metadata
14
- import abc
15
- import os
16
-
17
-
18
- TYPE_CHECKING: bool
19
-
20
- def modules_to_distributions() -> typing.Dict[str, typing.List[importlib.metadata.Distribution]]:
21
- """
22
- Return a mapping of top-level modules to their distributions.
23
-
24
- Returns
25
- -------
26
- Dict[str, List[metadata.Distribution]]
27
- A mapping of top-level modules to their distributions.
28
- """
29
- ...
30
-
31
- class PackagedDistribution(importlib.metadata.Distribution, metaclass=type):
32
- """
33
- A Python Package packaged within a MetaflowCodeContent. This allows users to use use importlib
34
- as they would regularly and the packaged Python Package would be considered as a
35
- distribution even if it really isn't (since it is just included in the PythonPath).
36
- """
37
- def __init__(self, root: str, content: typing.Dict[str, str]):
38
- ...
39
- def read_text(self, filename: typing.Union[str, os.PathLike]) -> typing.Optional[str]:
40
- """
41
- Attempt to load metadata file given by the name.
42
-
43
- :param filename: The name of the file in the distribution info.
44
- :return: The text if found, otherwise None.
45
- """
46
- ...
47
- def locate_file(self, path: typing.Union[str, os.PathLike]):
48
- ...
49
- ...
50
-
51
- class PackagedDistributionFinder(importlib.metadata.DistributionFinder, metaclass=abc.ABCMeta):
52
- def __init__(self, dist_info: typing.Dict[str, typing.Dict[str, str]]):
53
- ...
54
- def find_distributions(self, context = ...):
55
- ...
56
- ...
57
-
@@ -1,53 +0,0 @@
1
- ######################################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.16.1.1+obcheckpoint(0.2.4);ob(v1) #
4
- # Generated on 2025-07-15T21:03:18.219402 #
5
- ######################################################################################################
6
-
7
- from __future__ import annotations
8
-
9
- import typing
10
- import metaflow
11
- import abc
12
- if typing.TYPE_CHECKING:
13
- import typing
14
- import metaflow.packaging_sys.backend
15
- import abc
16
- import tarfile
17
- import io
18
-
19
- from .backend import PackagingBackend as PackagingBackend
20
-
21
- class TarPackagingBackend(metaflow.packaging_sys.backend.PackagingBackend, metaclass=abc.ABCMeta):
22
- @classmethod
23
- def get_extract_commands(cls, archive_name: str, dest_dir: str) -> typing.List[str]:
24
- ...
25
- def __init__(self):
26
- ...
27
- def create(self):
28
- ...
29
- def add_file(self, filename: str, arcname: typing.Optional[str] = None):
30
- ...
31
- def add_data(self, data: io.BytesIO, arcname: str):
32
- ...
33
- def close(self):
34
- ...
35
- def get_blob(self) -> typing.Union[bytes, bytearray, None]:
36
- ...
37
- @classmethod
38
- def cls_open(cls, content: typing.IO[bytes]) -> tarfile.TarFile:
39
- ...
40
- @classmethod
41
- def cls_has_member(cls, archive: tarfile.TarFile, name: str) -> bool:
42
- ...
43
- @classmethod
44
- def cls_get_member(cls, archive: tarfile.TarFile, name: str) -> typing.Optional[bytes]:
45
- ...
46
- @classmethod
47
- def cls_extract_members(cls, archive: tarfile.TarFile, members: typing.Optional[typing.List[str]] = None, dest_dir: str = '.'):
48
- ...
49
- @classmethod
50
- def cls_list_members(cls, archive: tarfile.TarFile) -> typing.Optional[typing.List[str]]:
51
- ...
52
- ...
53
-
@@ -1,26 +0,0 @@
1
- ######################################################################################################
2
- # Auto-generated Metaflow stub file #
3
- # MF version: 2.16.1.1+obcheckpoint(0.2.4);ob(v1) #
4
- # Generated on 2025-07-15T21:03:18.219753 #
5
- ######################################################################################################
6
-
7
- from __future__ import annotations
8
-
9
- import typing
10
-
11
-
12
- def walk_without_cycles(top_root: str, exclude_dirs: typing.Optional[typing.List[str]] = None) -> typing.Generator[typing.Tuple[str, typing.List[str]], None, None]:
13
- ...
14
-
15
- def walk(root: str, exclude_hidden: bool = True, file_filter: typing.Optional[typing.Callable[[str], bool]] = None, exclude_tl_dirs: typing.Optional[typing.List[str]] = None) -> typing.Generator[typing.Tuple[str, str], None, None]:
16
- ...
17
-
18
- def suffix_filter(suffixes: typing.List[str]) -> typing.Callable[[str], bool]:
19
- """
20
- Returns a filter function that checks if a file ends with any of the given suffixes.
21
- """
22
- ...
23
-
24
- def with_dir(new_dir):
25
- ...
26
-