metaflow-stubs 2.18.12__py2.py3-none-any.whl → 2.19.0__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.
Potentially problematic release.
This version of metaflow-stubs might be problematic. Click here for more details.
- metaflow-stubs/__init__.pyi +503 -502
- metaflow-stubs/cards.pyi +2 -2
- metaflow-stubs/cli.pyi +2 -2
- metaflow-stubs/cli_components/__init__.pyi +2 -2
- metaflow-stubs/cli_components/utils.pyi +2 -2
- metaflow-stubs/client/__init__.pyi +3 -2
- metaflow-stubs/client/core.pyi +62 -31
- metaflow-stubs/client/filecache.pyi +20 -4
- metaflow-stubs/events.pyi +7 -8
- metaflow-stubs/exception.pyi +2 -2
- metaflow-stubs/flowspec.pyi +7 -8
- metaflow-stubs/generated_for.txt +1 -1
- metaflow-stubs/includefile.pyi +4 -4
- metaflow-stubs/meta_files.pyi +2 -2
- metaflow-stubs/metadata_provider/__init__.pyi +2 -2
- metaflow-stubs/metadata_provider/heartbeat.pyi +2 -2
- metaflow-stubs/metadata_provider/metadata.pyi +2 -2
- metaflow-stubs/metadata_provider/util.pyi +2 -2
- metaflow-stubs/metaflow_config.pyi +16 -2
- metaflow-stubs/metaflow_current.pyi +32 -34
- metaflow-stubs/metaflow_git.pyi +3 -5
- metaflow-stubs/multicore_utils.pyi +4 -4
- metaflow-stubs/packaging_sys/__init__.pyi +39 -40
- metaflow-stubs/packaging_sys/backend.pyi +13 -13
- metaflow-stubs/packaging_sys/distribution_support.pyi +6 -7
- metaflow-stubs/packaging_sys/tar_backend.pyi +11 -11
- metaflow-stubs/packaging_sys/utils.pyi +3 -6
- metaflow-stubs/packaging_sys/v1.pyi +4 -4
- metaflow-stubs/parameters.pyi +6 -9
- metaflow-stubs/plugins/__init__.pyi +11 -11
- metaflow-stubs/plugins/airflow/__init__.pyi +2 -2
- metaflow-stubs/plugins/airflow/airflow_decorator.pyi +2 -2
- metaflow-stubs/plugins/airflow/airflow_utils.pyi +2 -2
- metaflow-stubs/plugins/airflow/exception.pyi +2 -2
- metaflow-stubs/plugins/airflow/sensors/__init__.pyi +2 -2
- metaflow-stubs/plugins/airflow/sensors/base_sensor.pyi +2 -2
- metaflow-stubs/plugins/airflow/sensors/external_task_sensor.pyi +2 -2
- metaflow-stubs/plugins/airflow/sensors/s3_sensor.pyi +2 -2
- metaflow-stubs/plugins/argo/__init__.pyi +2 -2
- metaflow-stubs/plugins/argo/argo_client.pyi +2 -2
- metaflow-stubs/plugins/argo/argo_events.pyi +2 -2
- metaflow-stubs/plugins/argo/argo_workflows.pyi +3 -3
- metaflow-stubs/plugins/argo/argo_workflows_decorator.pyi +4 -4
- metaflow-stubs/plugins/argo/argo_workflows_deployer.pyi +5 -3
- metaflow-stubs/plugins/argo/argo_workflows_deployer_objects.pyi +11 -9
- metaflow-stubs/plugins/argo/exit_hooks.pyi +4 -7
- metaflow-stubs/plugins/aws/__init__.pyi +3 -3
- metaflow-stubs/plugins/aws/aws_client.pyi +2 -2
- metaflow-stubs/plugins/aws/aws_utils.pyi +2 -2
- metaflow-stubs/plugins/aws/batch/__init__.pyi +2 -2
- metaflow-stubs/plugins/aws/batch/batch.pyi +2 -2
- metaflow-stubs/plugins/aws/batch/batch_client.pyi +2 -2
- metaflow-stubs/plugins/aws/batch/batch_decorator.pyi +2 -2
- metaflow-stubs/plugins/aws/secrets_manager/__init__.pyi +2 -2
- metaflow-stubs/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.pyi +3 -3
- metaflow-stubs/plugins/aws/step_functions/__init__.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/dynamo_db_client.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/event_bridge_client.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/schedule_decorator.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/step_functions.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/step_functions_client.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/step_functions_decorator.pyi +2 -2
- metaflow-stubs/plugins/aws/step_functions/step_functions_deployer.pyi +5 -3
- metaflow-stubs/plugins/aws/step_functions/step_functions_deployer_objects.pyi +9 -7
- metaflow-stubs/plugins/azure/__init__.pyi +2 -2
- metaflow-stubs/plugins/azure/azure_credential.pyi +2 -2
- metaflow-stubs/plugins/azure/azure_exceptions.pyi +2 -2
- metaflow-stubs/plugins/azure/azure_secret_manager_secrets_provider.pyi +3 -3
- metaflow-stubs/plugins/azure/azure_utils.pyi +2 -2
- metaflow-stubs/plugins/azure/blob_service_client_factory.pyi +2 -2
- metaflow-stubs/plugins/azure/includefile_support.pyi +2 -2
- metaflow-stubs/plugins/cards/__init__.pyi +2 -2
- metaflow-stubs/plugins/cards/card_client.pyi +5 -6
- metaflow-stubs/plugins/cards/card_creator.pyi +2 -2
- metaflow-stubs/plugins/cards/card_datastore.pyi +4 -2
- metaflow-stubs/plugins/cards/card_decorator.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/__init__.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/basic.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/card.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/components.pyi +14 -14
- metaflow-stubs/plugins/cards/card_modules/convert_to_native_type.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/json_viewer.pyi +4 -4
- metaflow-stubs/plugins/cards/card_modules/renderer_tools.pyi +2 -2
- metaflow-stubs/plugins/cards/card_modules/test_cards.pyi +2 -2
- metaflow-stubs/plugins/cards/card_resolver.pyi +2 -2
- metaflow-stubs/plugins/cards/component_serializer.pyi +2 -2
- metaflow-stubs/plugins/cards/exception.pyi +2 -2
- metaflow-stubs/plugins/catch_decorator.pyi +3 -3
- metaflow-stubs/plugins/datatools/__init__.pyi +2 -2
- metaflow-stubs/plugins/datatools/local.pyi +2 -2
- metaflow-stubs/plugins/datatools/s3/__init__.pyi +2 -2
- metaflow-stubs/plugins/datatools/s3/s3.pyi +27 -35
- metaflow-stubs/plugins/datatools/s3/s3tail.pyi +2 -2
- metaflow-stubs/plugins/datatools/s3/s3util.pyi +2 -2
- metaflow-stubs/plugins/debug_logger.pyi +2 -2
- metaflow-stubs/plugins/debug_monitor.pyi +2 -2
- metaflow-stubs/plugins/environment_decorator.pyi +2 -2
- metaflow-stubs/plugins/events_decorator.pyi +2 -2
- metaflow-stubs/plugins/exit_hook/__init__.pyi +2 -2
- metaflow-stubs/plugins/exit_hook/exit_hook_decorator.pyi +2 -2
- metaflow-stubs/plugins/frameworks/__init__.pyi +2 -2
- metaflow-stubs/plugins/frameworks/pytorch.pyi +2 -2
- metaflow-stubs/plugins/gcp/__init__.pyi +2 -2
- metaflow-stubs/plugins/gcp/gcp_secret_manager_secrets_provider.pyi +3 -3
- metaflow-stubs/plugins/gcp/gs_exceptions.pyi +2 -2
- metaflow-stubs/plugins/gcp/gs_storage_client_factory.pyi +2 -2
- metaflow-stubs/plugins/gcp/gs_utils.pyi +2 -2
- metaflow-stubs/plugins/gcp/includefile_support.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/__init__.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/kube_utils.pyi +3 -3
- metaflow-stubs/plugins/kubernetes/kubernetes.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/kubernetes_client.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/kubernetes_decorator.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/kubernetes_job.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/kubernetes_jobsets.pyi +2 -2
- metaflow-stubs/plugins/kubernetes/spot_monitor_sidecar.pyi +2 -2
- metaflow-stubs/plugins/parallel_decorator.pyi +2 -2
- metaflow-stubs/plugins/parsers.pyi +2 -2
- metaflow-stubs/plugins/project_decorator.pyi +2 -2
- metaflow-stubs/plugins/pypi/__init__.pyi +2 -2
- metaflow-stubs/plugins/pypi/conda_decorator.pyi +2 -2
- metaflow-stubs/plugins/pypi/conda_environment.pyi +3 -3
- metaflow-stubs/plugins/pypi/parsers.pyi +2 -2
- metaflow-stubs/plugins/pypi/pypi_decorator.pyi +2 -2
- metaflow-stubs/plugins/pypi/pypi_environment.pyi +2 -2
- metaflow-stubs/plugins/pypi/utils.pyi +2 -2
- metaflow-stubs/plugins/resources_decorator.pyi +2 -2
- metaflow-stubs/plugins/retry_decorator.pyi +2 -2
- metaflow-stubs/plugins/secrets/__init__.pyi +2 -2
- metaflow-stubs/plugins/secrets/inline_secrets_provider.pyi +3 -3
- metaflow-stubs/plugins/secrets/secrets_decorator.pyi +2 -2
- metaflow-stubs/plugins/secrets/secrets_func.pyi +3 -5
- metaflow-stubs/plugins/secrets/secrets_spec.pyi +2 -2
- metaflow-stubs/plugins/secrets/utils.pyi +2 -2
- metaflow-stubs/plugins/storage_executor.pyi +2 -2
- metaflow-stubs/plugins/test_unbounded_foreach_decorator.pyi +3 -3
- metaflow-stubs/plugins/timeout_decorator.pyi +3 -3
- metaflow-stubs/plugins/uv/__init__.pyi +2 -2
- metaflow-stubs/plugins/uv/uv_environment.pyi +3 -3
- metaflow-stubs/pylint_wrapper.pyi +2 -2
- metaflow-stubs/runner/__init__.pyi +2 -2
- metaflow-stubs/runner/deployer.pyi +20 -19
- metaflow-stubs/runner/deployer_impl.pyi +6 -4
- metaflow-stubs/runner/metaflow_runner.pyi +134 -21
- metaflow-stubs/runner/nbdeploy.pyi +3 -3
- metaflow-stubs/runner/nbrun.pyi +3 -3
- metaflow-stubs/runner/subprocess_manager.pyi +8 -8
- metaflow-stubs/runner/utils.pyi +4 -5
- metaflow-stubs/system/__init__.pyi +2 -2
- metaflow-stubs/system/system_logger.pyi +4 -5
- metaflow-stubs/system/system_monitor.pyi +3 -3
- metaflow-stubs/tagging_util.pyi +2 -2
- metaflow-stubs/tuple_util.pyi +2 -2
- metaflow-stubs/user_configs/__init__.pyi +2 -2
- metaflow-stubs/user_configs/config_options.pyi +5 -6
- metaflow-stubs/user_configs/config_parameters.pyi +9 -9
- metaflow-stubs/user_decorators/__init__.pyi +2 -2
- metaflow-stubs/user_decorators/common.pyi +6 -6
- metaflow-stubs/user_decorators/mutable_flow.pyi +6 -7
- metaflow-stubs/user_decorators/mutable_step.pyi +6 -9
- metaflow-stubs/user_decorators/user_flow_decorator.pyi +6 -7
- metaflow-stubs/user_decorators/user_step_decorator.pyi +22 -15
- metaflow-stubs/version.pyi +2 -2
- {metaflow_stubs-2.18.12.dist-info → metaflow_stubs-2.19.0.dist-info}/METADATA +2 -2
- metaflow_stubs-2.19.0.dist-info/RECORD +168 -0
- metaflow_stubs-2.18.12.dist-info/RECORD +0 -168
- {metaflow_stubs-2.18.12.dist-info → metaflow_stubs-2.19.0.dist-info}/WHEEL +0 -0
- {metaflow_stubs-2.18.12.dist-info → metaflow_stubs-2.19.0.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
######################################################################################################
|
|
2
2
|
# Auto-generated Metaflow stub file #
|
|
3
|
-
# MF version: 2.
|
|
4
|
-
# Generated on 2025-10-
|
|
3
|
+
# MF version: 2.19.0 #
|
|
4
|
+
# Generated on 2025-10-26T02:29:29.712769 #
|
|
5
5
|
######################################################################################################
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
@@ -11,6 +11,8 @@ from .exception import MetaflowException as MetaflowException
|
|
|
11
11
|
|
|
12
12
|
DATASTORE_LOCAL_DIR: str
|
|
13
13
|
|
|
14
|
+
DATASTORE_SPIN_LOCAL_DIR: str
|
|
15
|
+
|
|
14
16
|
LOCAL_CONFIG_FILE: str
|
|
15
17
|
|
|
16
18
|
DEFAULT_DATASTORE: str
|
|
@@ -37,10 +39,18 @@ DEFAULT_SECRETS_ROLE: None
|
|
|
37
39
|
|
|
38
40
|
DEFAULT_FROM_DEPLOYMENT_IMPL: str
|
|
39
41
|
|
|
42
|
+
SPIN_ALLOWED_DECORATORS: list
|
|
43
|
+
|
|
44
|
+
SPIN_DISALLOWED_DECORATORS: list
|
|
45
|
+
|
|
46
|
+
SPIN_PERSIST: bool
|
|
47
|
+
|
|
40
48
|
USER: None
|
|
41
49
|
|
|
42
50
|
DATASTORE_SYSROOT_LOCAL: None
|
|
43
51
|
|
|
52
|
+
DATASTORE_SYSROOT_SPIN: None
|
|
53
|
+
|
|
44
54
|
DATASTORE_SYSROOT_S3: None
|
|
45
55
|
|
|
46
56
|
DATASTORE_SYSROOT_AZURE: None
|
|
@@ -67,6 +77,8 @@ S3_WORKER_COUNT: int
|
|
|
67
77
|
|
|
68
78
|
S3_TRANSIENT_RETRY_COUNT: int
|
|
69
79
|
|
|
80
|
+
S3_LOG_TRANSIENT_RETRIES: bool
|
|
81
|
+
|
|
70
82
|
S3_CLIENT_RETRY_CONFIG: dict
|
|
71
83
|
|
|
72
84
|
RETRY_WARNING_THRESHOLD: int
|
|
@@ -263,6 +275,8 @@ ESCAPE_HATCH_WARNING: bool
|
|
|
263
275
|
|
|
264
276
|
FEAT_ALWAYS_UPLOAD_CODE_PACKAGE: bool
|
|
265
277
|
|
|
278
|
+
PROFILE_FROM_START: bool
|
|
279
|
+
|
|
266
280
|
DEBUG_OPTIONS: list
|
|
267
281
|
|
|
268
282
|
DEBUG_SUBCOMMAND: bool
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
######################################################################################################
|
|
2
2
|
# Auto-generated Metaflow stub file #
|
|
3
|
-
# MF version: 2.
|
|
4
|
-
# Generated on 2025-10-
|
|
3
|
+
# MF version: 2.19.0 #
|
|
4
|
+
# Generated on 2025-10-26T02:29:29.829618 #
|
|
5
5
|
######################################################################################################
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
9
|
import typing
|
|
10
10
|
if typing.TYPE_CHECKING:
|
|
11
|
-
import metaflow.plugins.cards.component_serializer
|
|
12
|
-
import metaflow
|
|
13
11
|
import metaflow.events
|
|
14
12
|
import metaflow.metaflow_current
|
|
15
|
-
import
|
|
13
|
+
import metaflow.plugins.cards.component_serializer
|
|
16
14
|
|
|
17
15
|
|
|
18
16
|
TYPE_CHECKING: bool
|
|
@@ -46,7 +44,7 @@ class Current(object, metaclass=type):
|
|
|
46
44
|
...
|
|
47
45
|
def __contains__(self, key: str):
|
|
48
46
|
...
|
|
49
|
-
def get(self, key: str, default = None) -> typing.
|
|
47
|
+
def get(self, key: str, default = None) -> typing.Any | None:
|
|
50
48
|
...
|
|
51
49
|
@property
|
|
52
50
|
def is_running_flow(self) -> bool:
|
|
@@ -63,7 +61,7 @@ class Current(object, metaclass=type):
|
|
|
63
61
|
"""
|
|
64
62
|
...
|
|
65
63
|
@property
|
|
66
|
-
def flow_name(self) ->
|
|
64
|
+
def flow_name(self) -> str | None:
|
|
67
65
|
"""
|
|
68
66
|
The name of the currently executing flow.
|
|
69
67
|
|
|
@@ -74,7 +72,7 @@ class Current(object, metaclass=type):
|
|
|
74
72
|
"""
|
|
75
73
|
...
|
|
76
74
|
@property
|
|
77
|
-
def run_id(self) ->
|
|
75
|
+
def run_id(self) -> str | None:
|
|
78
76
|
"""
|
|
79
77
|
The run ID of the currently executing run.
|
|
80
78
|
|
|
@@ -85,7 +83,7 @@ class Current(object, metaclass=type):
|
|
|
85
83
|
"""
|
|
86
84
|
...
|
|
87
85
|
@property
|
|
88
|
-
def step_name(self) ->
|
|
86
|
+
def step_name(self) -> str | None:
|
|
89
87
|
"""
|
|
90
88
|
The name of the currently executing step.
|
|
91
89
|
|
|
@@ -96,7 +94,7 @@ class Current(object, metaclass=type):
|
|
|
96
94
|
"""
|
|
97
95
|
...
|
|
98
96
|
@property
|
|
99
|
-
def task_id(self) ->
|
|
97
|
+
def task_id(self) -> str | None:
|
|
100
98
|
"""
|
|
101
99
|
The task ID of the currently executing task.
|
|
102
100
|
|
|
@@ -123,7 +121,7 @@ class Current(object, metaclass=type):
|
|
|
123
121
|
"""
|
|
124
122
|
...
|
|
125
123
|
@property
|
|
126
|
-
def origin_run_id(self) ->
|
|
124
|
+
def origin_run_id(self) -> str | None:
|
|
127
125
|
"""
|
|
128
126
|
The run ID of the original run this run was resumed from.
|
|
129
127
|
|
|
@@ -141,7 +139,7 @@ class Current(object, metaclass=type):
|
|
|
141
139
|
"""
|
|
142
140
|
...
|
|
143
141
|
@property
|
|
144
|
-
def pathspec(self) ->
|
|
142
|
+
def pathspec(self) -> str | None:
|
|
145
143
|
"""
|
|
146
144
|
Pathspec of the current task, i.e. a unique
|
|
147
145
|
identifier of the current task. The returned
|
|
@@ -159,7 +157,7 @@ class Current(object, metaclass=type):
|
|
|
159
157
|
"""
|
|
160
158
|
...
|
|
161
159
|
@property
|
|
162
|
-
def task(self) ->
|
|
160
|
+
def task(self) -> ForwardRef('metaflow.Task') | None:
|
|
163
161
|
"""
|
|
164
162
|
Task object of the current task.
|
|
165
163
|
|
|
@@ -170,7 +168,7 @@ class Current(object, metaclass=type):
|
|
|
170
168
|
"""
|
|
171
169
|
...
|
|
172
170
|
@property
|
|
173
|
-
def run(self) ->
|
|
171
|
+
def run(self) -> ForwardRef('metaflow.Run') | None:
|
|
174
172
|
"""
|
|
175
173
|
Run object of the current run.
|
|
176
174
|
|
|
@@ -192,7 +190,7 @@ class Current(object, metaclass=type):
|
|
|
192
190
|
"""
|
|
193
191
|
...
|
|
194
192
|
@property
|
|
195
|
-
def username(self) ->
|
|
193
|
+
def username(self) -> str | None:
|
|
196
194
|
"""
|
|
197
195
|
The name of the user who started the run, if available.
|
|
198
196
|
|
|
@@ -211,7 +209,7 @@ class Current(object, metaclass=type):
|
|
|
211
209
|
"""
|
|
212
210
|
...
|
|
213
211
|
@property
|
|
214
|
-
def tempdir(self) ->
|
|
212
|
+
def tempdir(self) -> str | None:
|
|
215
213
|
"""
|
|
216
214
|
Currently configured temporary directory.
|
|
217
215
|
|
|
@@ -225,24 +223,6 @@ class Current(object, metaclass=type):
|
|
|
225
223
|
def graph(self):
|
|
226
224
|
...
|
|
227
225
|
@property
|
|
228
|
-
def card(self) -> "metaflow.plugins.cards.component_serializer.CardComponentCollector":
|
|
229
|
-
"""
|
|
230
|
-
(only in the presence of the @card decorator)
|
|
231
|
-
|
|
232
|
-
The `@card` decorator makes the cards available through the `current.card`
|
|
233
|
-
object. If multiple `@card` decorators are present, you can add an `ID` to
|
|
234
|
-
distinguish between them using `@card(id=ID)` as the decorator. You will then
|
|
235
|
-
be able to access that specific card using `current.card[ID].
|
|
236
|
-
|
|
237
|
-
Methods available are `append` and `extend`
|
|
238
|
-
|
|
239
|
-
Returns
|
|
240
|
-
-------
|
|
241
|
-
CardComponentCollector
|
|
242
|
-
The or one of the cards attached to this step.
|
|
243
|
-
"""
|
|
244
|
-
...
|
|
245
|
-
@property
|
|
246
226
|
def parallel(self) -> "metaflow.metaflow_current.Parallel":
|
|
247
227
|
"""
|
|
248
228
|
(only in the presence of the @parallel decorator)
|
|
@@ -272,6 +252,24 @@ class Current(object, metaclass=type):
|
|
|
272
252
|
"""
|
|
273
253
|
...
|
|
274
254
|
@property
|
|
255
|
+
def card(self) -> "metaflow.plugins.cards.component_serializer.CardComponentCollector":
|
|
256
|
+
"""
|
|
257
|
+
(only in the presence of the @card decorator)
|
|
258
|
+
|
|
259
|
+
The `@card` decorator makes the cards available through the `current.card`
|
|
260
|
+
object. If multiple `@card` decorators are present, you can add an `ID` to
|
|
261
|
+
distinguish between them using `@card(id=ID)` as the decorator. You will then
|
|
262
|
+
be able to access that specific card using `current.card[ID].
|
|
263
|
+
|
|
264
|
+
Methods available are `append` and `extend`
|
|
265
|
+
|
|
266
|
+
Returns
|
|
267
|
+
-------
|
|
268
|
+
CardComponentCollector
|
|
269
|
+
The or one of the cards attached to this step.
|
|
270
|
+
"""
|
|
271
|
+
...
|
|
272
|
+
@property
|
|
275
273
|
def trigger(self) -> "metaflow.events.Trigger":
|
|
276
274
|
"""
|
|
277
275
|
(only in the presence of the @trigger_on_finish, or @trigger decorators)
|
metaflow-stubs/metaflow_git.pyi
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
######################################################################################################
|
|
2
2
|
# Auto-generated Metaflow stub file #
|
|
3
|
-
# MF version: 2.
|
|
4
|
-
# Generated on 2025-10-
|
|
3
|
+
# MF version: 2.19.0 #
|
|
4
|
+
# Generated on 2025-10-26T02:29:29.723387 #
|
|
5
5
|
######################################################################################################
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
9
|
import typing
|
|
10
|
-
if typing.TYPE_CHECKING:
|
|
11
|
-
import os
|
|
12
10
|
|
|
13
11
|
|
|
14
|
-
def get_repository_info(path:
|
|
12
|
+
def get_repository_info(path: str | os.PathLike) -> typing.Dict[str, str | bool]:
|
|
15
13
|
"""
|
|
16
14
|
Get git repository information for a path
|
|
17
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
######################################################################################################
|
|
2
2
|
# Auto-generated Metaflow stub file #
|
|
3
|
-
# MF version: 2.
|
|
4
|
-
# Generated on 2025-10-
|
|
3
|
+
# MF version: 2.19.0 #
|
|
4
|
+
# Generated on 2025-10-26T02:29:29.713314 #
|
|
5
5
|
######################################################################################################
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
@@ -14,7 +14,7 @@ _R = typing.TypeVar("_R", contravariant=False, covariant=False)
|
|
|
14
14
|
class MulticoreException(Exception, metaclass=type):
|
|
15
15
|
...
|
|
16
16
|
|
|
17
|
-
def parallel_imap_unordered(func: typing.Callable[[_A], _R], iterable: typing.Iterable[_A], max_parallel:
|
|
17
|
+
def parallel_imap_unordered(func: typing.Callable[[_A], _R], iterable: typing.Iterable[_A], max_parallel: int | None = None, dir: str | None = None) -> typing.Iterator[_R]:
|
|
18
18
|
"""
|
|
19
19
|
Parallelizes execution of a function using multiprocessing. The result
|
|
20
20
|
order is not guaranteed.
|
|
@@ -37,7 +37,7 @@ def parallel_imap_unordered(func: typing.Callable[[_A], _R], iterable: typing.It
|
|
|
37
37
|
"""
|
|
38
38
|
...
|
|
39
39
|
|
|
40
|
-
def parallel_map(func: typing.Callable[[_A], _R], iterable: typing.Iterable[_A], max_parallel:
|
|
40
|
+
def parallel_map(func: typing.Callable[[_A], _R], iterable: typing.Iterable[_A], max_parallel: int | None = None, dir: str | None = None) -> typing.List[_R]:
|
|
41
41
|
"""
|
|
42
42
|
Parallelizes execution of a function using multiprocessing. The result
|
|
43
43
|
order is that of the arguments in `iterable`.
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
######################################################################################################
|
|
2
2
|
# Auto-generated Metaflow stub file #
|
|
3
|
-
# MF version: 2.
|
|
4
|
-
# Generated on 2025-10-
|
|
3
|
+
# MF version: 2.19.0 #
|
|
4
|
+
# Generated on 2025-10-26T02:29:29.710289 #
|
|
5
5
|
######################################################################################################
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
|
-
import enum
|
|
10
9
|
import typing
|
|
10
|
+
import enum
|
|
11
11
|
import metaflow
|
|
12
12
|
if typing.TYPE_CHECKING:
|
|
13
|
+
import metaflow.packaging_sys
|
|
13
14
|
import metaflow.packaging_sys.tar_backend
|
|
14
|
-
import metaflow.extension_support.metadata
|
|
15
|
-
import enum
|
|
16
15
|
import metaflow.packaging_sys.backend
|
|
17
16
|
import typing
|
|
18
|
-
import
|
|
17
|
+
import enum
|
|
19
18
|
|
|
20
19
|
from . import distribution_support as distribution_support
|
|
21
20
|
from .distribution_support import PackagedDistributionFinder as PackagedDistributionFinder
|
|
@@ -52,7 +51,7 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
52
51
|
the Metaflow code package (non user) to do.
|
|
53
52
|
"""
|
|
54
53
|
@classmethod
|
|
55
|
-
def get_info(cls) -> typing.
|
|
54
|
+
def get_info(cls) -> typing.Dict[str, typing.Any] | None:
|
|
56
55
|
"""
|
|
57
56
|
Get the content of the special INFO file on the local filesystem after
|
|
58
57
|
the code package has been expanded.
|
|
@@ -64,7 +63,7 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
64
63
|
"""
|
|
65
64
|
...
|
|
66
65
|
@classmethod
|
|
67
|
-
def get_config(cls) -> typing.
|
|
66
|
+
def get_config(cls) -> typing.Dict[str, typing.Any] | None:
|
|
68
67
|
"""
|
|
69
68
|
Get the content of the special CONFIG file on the local filesystem after
|
|
70
69
|
the code package has been expanded.
|
|
@@ -76,7 +75,7 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
76
75
|
"""
|
|
77
76
|
...
|
|
78
77
|
@classmethod
|
|
79
|
-
def get_filename(cls, filename: str, content_type: ContentType) ->
|
|
78
|
+
def get_filename(cls, filename: str, content_type: ContentType) -> str | None:
|
|
80
79
|
"""
|
|
81
80
|
Get the path to a file extracted from the archive. The filename is the filename
|
|
82
81
|
passed in when creating the archive and content_type is the type of the content.
|
|
@@ -111,7 +110,7 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
111
110
|
"""
|
|
112
111
|
...
|
|
113
112
|
@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.
|
|
113
|
+
def get_archive_info(cls, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Dict[str, typing.Any] | None:
|
|
115
114
|
"""
|
|
116
115
|
Get the content of the special INFO file in the archive.
|
|
117
116
|
|
|
@@ -122,7 +121,7 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
122
121
|
"""
|
|
123
122
|
...
|
|
124
123
|
@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.
|
|
124
|
+
def get_archive_config(cls, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Dict[str, typing.Any] | None:
|
|
126
125
|
"""
|
|
127
126
|
Get the content of the special CONFIG file in the archive.
|
|
128
127
|
|
|
@@ -133,7 +132,7 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
133
132
|
"""
|
|
134
133
|
...
|
|
135
134
|
@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) ->
|
|
135
|
+
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) -> str | None:
|
|
137
136
|
"""
|
|
138
137
|
Get the filename of the archive. This does not do any extraction but simply
|
|
139
138
|
returns where, in the archive, the file is located. This is the equivalent of
|
|
@@ -157,10 +156,10 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
157
156
|
"""
|
|
158
157
|
...
|
|
159
158
|
@classmethod
|
|
160
|
-
def get_archive_content_members(cls, archive: typing.Any, content_types:
|
|
159
|
+
def get_archive_content_members(cls, archive: typing.Any, content_types: int | None = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[typing.Any]:
|
|
161
160
|
...
|
|
162
161
|
@classmethod
|
|
163
|
-
def get_distribution_finder(cls) ->
|
|
162
|
+
def get_distribution_finder(cls) -> ForwardRef('metaflow.extension_support.metadata.DistributionFinder') | None:
|
|
164
163
|
"""
|
|
165
164
|
Get the distribution finder for the Metaflow code package (if applicable).
|
|
166
165
|
|
|
@@ -197,28 +196,28 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
197
196
|
"""
|
|
198
197
|
...
|
|
199
198
|
@classmethod
|
|
200
|
-
def get_info_impl(cls, mfcontent_info: typing.
|
|
199
|
+
def get_info_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None) -> typing.Dict[str, typing.Any] | None:
|
|
201
200
|
...
|
|
202
201
|
@classmethod
|
|
203
|
-
def get_config_impl(cls, mfcontent_info: typing.
|
|
202
|
+
def get_config_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None) -> typing.Dict[str, typing.Any] | None:
|
|
204
203
|
...
|
|
205
204
|
@classmethod
|
|
206
|
-
def get_filename_impl(cls, mfcontent_info: typing.
|
|
205
|
+
def get_filename_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, filename: str, content_type: ContentType) -> str | None:
|
|
207
206
|
...
|
|
208
207
|
@classmethod
|
|
209
|
-
def get_distribution_finder_impl(cls, mfcontent_info: typing.
|
|
208
|
+
def get_distribution_finder_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None) -> ForwardRef('metaflow.extension_support.metadata.DistributionFinder') | None:
|
|
210
209
|
...
|
|
211
210
|
@classmethod
|
|
212
|
-
def get_archive_info_impl(cls, mfcontent_info: typing.
|
|
211
|
+
def get_archive_info_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Dict[str, typing.Any] | None:
|
|
213
212
|
...
|
|
214
213
|
@classmethod
|
|
215
|
-
def get_archive_config_impl(cls, mfcontent_info: typing.
|
|
214
|
+
def get_archive_config_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Dict[str, typing.Any] | None:
|
|
216
215
|
...
|
|
217
216
|
@classmethod
|
|
218
|
-
def get_archive_filename_impl(cls, mfcontent_info: typing.
|
|
217
|
+
def get_archive_filename_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, filename: str, content_type: ContentType, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> str | None:
|
|
219
218
|
...
|
|
220
219
|
@classmethod
|
|
221
|
-
def get_archive_content_members_impl(cls, mfcontent_info: typing.
|
|
220
|
+
def get_archive_content_members_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, content_types: int | None = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[typing.Any]:
|
|
222
221
|
...
|
|
223
222
|
@classmethod
|
|
224
223
|
def get_post_extract_env_vars_impl(cls, dest_dir: str) -> typing.Dict[str, str]:
|
|
@@ -239,7 +238,7 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
239
238
|
Files or directories to exclude
|
|
240
239
|
"""
|
|
241
240
|
...
|
|
242
|
-
def content_names(self, content_types:
|
|
241
|
+
def content_names(self, content_types: int | None = None) -> typing.Generator[typing.Tuple[str, str], None, None]:
|
|
243
242
|
"""
|
|
244
243
|
Detailed list of the content of this MetaflowCodeContent. This will list all files
|
|
245
244
|
(or non files -- for the INFO or CONFIG data for example) present in the archive.
|
|
@@ -255,7 +254,7 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
255
254
|
Path on the filesystem and the name in the archive
|
|
256
255
|
"""
|
|
257
256
|
...
|
|
258
|
-
def contents(self, content_types:
|
|
257
|
+
def contents(self, content_types: int | None = None) -> typing.Generator[typing.Tuple[bytes | str, str], None, None]:
|
|
259
258
|
"""
|
|
260
259
|
Very similar to content_names but returns the content of the non-files
|
|
261
260
|
as well as bytes. For files, identical output as content_names
|
|
@@ -346,31 +345,31 @@ class MetaflowCodeContent(object, metaclass=type):
|
|
|
346
345
|
|
|
347
346
|
class MetaflowCodeContentV0(MetaflowCodeContent, metaclass=type):
|
|
348
347
|
@classmethod
|
|
349
|
-
def get_info_impl(cls, mfcontent_info: typing.
|
|
348
|
+
def get_info_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None) -> typing.Dict[str, typing.Any] | None:
|
|
350
349
|
...
|
|
351
350
|
@classmethod
|
|
352
|
-
def get_config_impl(cls, mfcontent_info: typing.
|
|
351
|
+
def get_config_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None) -> typing.Dict[str, typing.Any] | None:
|
|
353
352
|
...
|
|
354
353
|
@classmethod
|
|
355
|
-
def get_filename_impl(cls, mfcontent_info: typing.
|
|
354
|
+
def get_filename_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, filename: str, content_type: ContentType) -> str | None:
|
|
356
355
|
"""
|
|
357
356
|
For V0, the filename is simply the filename passed in.
|
|
358
357
|
"""
|
|
359
358
|
...
|
|
360
359
|
@classmethod
|
|
361
|
-
def get_distribution_finder_impl(cls, mfcontent_info: typing.
|
|
360
|
+
def get_distribution_finder_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None) -> ForwardRef('metaflow.extension_support.metadata.DistributionFinder') | None:
|
|
362
361
|
...
|
|
363
362
|
@classmethod
|
|
364
|
-
def get_archive_info_impl(cls, mfcontent_info: typing.
|
|
363
|
+
def get_archive_info_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Dict[str, typing.Any] | None:
|
|
365
364
|
...
|
|
366
365
|
@classmethod
|
|
367
|
-
def get_archive_config_impl(cls, mfcontent_info: typing.
|
|
366
|
+
def get_archive_config_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Dict[str, typing.Any] | None:
|
|
368
367
|
...
|
|
369
368
|
@classmethod
|
|
370
|
-
def get_archive_filename_impl(cls, mfcontent_info: typing.
|
|
369
|
+
def get_archive_filename_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, 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
370
|
...
|
|
372
371
|
@classmethod
|
|
373
|
-
def get_archive_content_members_impl(cls, mfcontent_info: typing.
|
|
372
|
+
def get_archive_content_members_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, content_types: int | None = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[typing.Any]:
|
|
374
373
|
"""
|
|
375
374
|
For V0, we use a static list of known files to classify the content
|
|
376
375
|
"""
|
|
@@ -400,28 +399,28 @@ class MetaflowCodeContentV1Base(MetaflowCodeContent, metaclass=type):
|
|
|
400
399
|
def __init__(self, code_dir: str, other_dir: str):
|
|
401
400
|
...
|
|
402
401
|
@classmethod
|
|
403
|
-
def get_info_impl(cls, mfcontent_info: typing.
|
|
402
|
+
def get_info_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None) -> typing.Dict[str, typing.Any] | None:
|
|
404
403
|
...
|
|
405
404
|
@classmethod
|
|
406
|
-
def get_config_impl(cls, mfcontent_info: typing.
|
|
405
|
+
def get_config_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None) -> typing.Dict[str, typing.Any] | None:
|
|
407
406
|
...
|
|
408
407
|
@classmethod
|
|
409
|
-
def get_filename_impl(cls, mfcontent_info: typing.
|
|
408
|
+
def get_filename_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, filename: str, content_type: ContentType) -> str | None:
|
|
410
409
|
...
|
|
411
410
|
@classmethod
|
|
412
|
-
def get_distribution_finder_impl(cls, mfcontent_info: typing.
|
|
411
|
+
def get_distribution_finder_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None) -> ForwardRef('metaflow.extension_support.metadata.DistributionFinder') | None:
|
|
413
412
|
...
|
|
414
413
|
@classmethod
|
|
415
|
-
def get_archive_info_impl(cls, mfcontent_info: typing.
|
|
414
|
+
def get_archive_info_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Dict[str, typing.Any] | None:
|
|
416
415
|
...
|
|
417
416
|
@classmethod
|
|
418
|
-
def get_archive_config_impl(cls, mfcontent_info: typing.
|
|
417
|
+
def get_archive_config_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.Dict[str, typing.Any] | None:
|
|
419
418
|
...
|
|
420
419
|
@classmethod
|
|
421
|
-
def get_archive_filename_impl(cls, mfcontent_info: typing.
|
|
420
|
+
def get_archive_filename_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, 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
421
|
...
|
|
423
422
|
@classmethod
|
|
424
|
-
def get_archive_content_members_impl(cls, mfcontent_info: typing.
|
|
423
|
+
def get_archive_content_members_impl(cls, mfcontent_info: typing.Dict[str, typing.Any] | None, archive: typing.Any, content_types: int | None = None, packaging_backend: typing.Type[metaflow.packaging_sys.backend.PackagingBackend] = metaflow.packaging_sys.tar_backend.TarPackagingBackend) -> typing.List[typing.Any]:
|
|
425
424
|
...
|
|
426
425
|
@classmethod
|
|
427
426
|
def get_post_extract_env_vars_impl(cls, dest_dir: str) -> typing.Dict[str, str]:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
######################################################################################################
|
|
2
2
|
# Auto-generated Metaflow stub file #
|
|
3
|
-
# MF version: 2.
|
|
4
|
-
# Generated on 2025-10-
|
|
3
|
+
# MF version: 2.19.0 #
|
|
4
|
+
# Generated on 2025-10-26T02:29:29.743579 #
|
|
5
5
|
######################################################################################################
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
@@ -9,8 +9,8 @@ from __future__ import annotations
|
|
|
9
9
|
import typing
|
|
10
10
|
import abc
|
|
11
11
|
if typing.TYPE_CHECKING:
|
|
12
|
-
import typing
|
|
13
12
|
import _io
|
|
13
|
+
import typing
|
|
14
14
|
import abc
|
|
15
15
|
|
|
16
16
|
|
|
@@ -31,13 +31,13 @@ class PackagingBackend(abc.ABC, metaclass=abc.ABCMeta):
|
|
|
31
31
|
...
|
|
32
32
|
def create(self) -> "PackagingBackend":
|
|
33
33
|
...
|
|
34
|
-
def add_file(self, filename: str, arcname:
|
|
34
|
+
def add_file(self, filename: str, arcname: str | None = None):
|
|
35
35
|
...
|
|
36
36
|
def add_data(self, data: _io.BytesIO, arcname: str):
|
|
37
37
|
...
|
|
38
38
|
def close(self):
|
|
39
39
|
...
|
|
40
|
-
def get_blob(self) ->
|
|
40
|
+
def get_blob(self) -> bytes | bytearray | None:
|
|
41
41
|
...
|
|
42
42
|
@classmethod
|
|
43
43
|
def cls_open(cls, content: typing.IO[bytes]) -> typing.Any:
|
|
@@ -46,7 +46,7 @@ class PackagingBackend(abc.ABC, metaclass=abc.ABCMeta):
|
|
|
46
46
|
"""
|
|
47
47
|
...
|
|
48
48
|
@classmethod
|
|
49
|
-
def cls_member_name(cls, member: typing.
|
|
49
|
+
def cls_member_name(cls, member: typing.Any | str) -> str:
|
|
50
50
|
"""
|
|
51
51
|
Returns the name of the member as a string.
|
|
52
52
|
This is used to ensure consistent naming across different archive formats.
|
|
@@ -56,27 +56,27 @@ class PackagingBackend(abc.ABC, metaclass=abc.ABCMeta):
|
|
|
56
56
|
def cls_has_member(cls, archive: typing.Any, name: str) -> bool:
|
|
57
57
|
...
|
|
58
58
|
@classmethod
|
|
59
|
-
def cls_get_member(cls, archive: typing.Any, name: str) ->
|
|
59
|
+
def cls_get_member(cls, archive: typing.Any, name: str) -> bytes | None:
|
|
60
60
|
...
|
|
61
61
|
@classmethod
|
|
62
|
-
def cls_extract_members(cls, archive: typing.Any, members: typing.
|
|
62
|
+
def cls_extract_members(cls, archive: typing.Any, members: typing.List[typing.Any] | None = None, dest_dir: str = '.'):
|
|
63
63
|
...
|
|
64
64
|
@classmethod
|
|
65
|
-
def cls_list_names(cls, archive: typing.Any) -> typing.
|
|
65
|
+
def cls_list_names(cls, archive: typing.Any) -> typing.List[str] | None:
|
|
66
66
|
...
|
|
67
67
|
@classmethod
|
|
68
|
-
def cls_list_members(cls, archive: typing.Any) -> typing.
|
|
68
|
+
def cls_list_members(cls, archive: typing.Any) -> typing.List[typing.Any] | None:
|
|
69
69
|
"""
|
|
70
70
|
List all members in the archive.
|
|
71
71
|
"""
|
|
72
72
|
...
|
|
73
73
|
def has_member(self, name: str) -> bool:
|
|
74
74
|
...
|
|
75
|
-
def get_member(self, name: str) ->
|
|
75
|
+
def get_member(self, name: str) -> bytes | None:
|
|
76
76
|
...
|
|
77
|
-
def extract_members(self, members: typing.
|
|
77
|
+
def extract_members(self, members: typing.List[typing.Any] | None = None, dest_dir: str = '.'):
|
|
78
78
|
...
|
|
79
|
-
def list_names(self) -> typing.
|
|
79
|
+
def list_names(self) -> typing.List[str] | None:
|
|
80
80
|
...
|
|
81
81
|
def __enter__(self):
|
|
82
82
|
...
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
######################################################################################################
|
|
2
2
|
# Auto-generated Metaflow stub file #
|
|
3
|
-
# MF version: 2.
|
|
4
|
-
# Generated on 2025-10-
|
|
3
|
+
# MF version: 2.19.0 #
|
|
4
|
+
# Generated on 2025-10-26T02:29:29.742514 #
|
|
5
5
|
######################################################################################################
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
|
+
import typing
|
|
9
10
|
import abc
|
|
10
11
|
import importlib
|
|
11
|
-
import typing
|
|
12
12
|
if typing.TYPE_CHECKING:
|
|
13
|
-
import abc
|
|
14
|
-
import os
|
|
15
13
|
import importlib.metadata
|
|
14
|
+
import abc
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
TYPE_CHECKING: bool
|
|
@@ -36,7 +35,7 @@ class PackagedDistribution(importlib.metadata.Distribution, metaclass=type):
|
|
|
36
35
|
"""
|
|
37
36
|
def __init__(self, root: str, content: typing.Dict[str, str]):
|
|
38
37
|
...
|
|
39
|
-
def read_text(self, filename:
|
|
38
|
+
def read_text(self, filename: str | os.PathLike) -> str | None:
|
|
40
39
|
"""
|
|
41
40
|
Attempt to load metadata file given by the name.
|
|
42
41
|
|
|
@@ -59,7 +58,7 @@ class PackagedDistribution(importlib.metadata.Distribution, metaclass=type):
|
|
|
59
58
|
:return: The text if found, otherwise None.
|
|
60
59
|
"""
|
|
61
60
|
...
|
|
62
|
-
def locate_file(self, path:
|
|
61
|
+
def locate_file(self, path: str | os.PathLike):
|
|
63
62
|
...
|
|
64
63
|
...
|
|
65
64
|
|