prefect-client 3.3.1__py3-none-any.whl → 3.3.2.dev1__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.
- prefect/_build_info.py +3 -3
- prefect/_internal/schemas/bases.py +4 -2
- prefect/blocks/core.py +1 -1
- prefect/client/schemas/objects.py +1 -1
- prefect/events/filters.py +1 -1
- prefect/settings/base.py +3 -3
- {prefect_client-3.3.1.dist-info → prefect_client-3.3.2.dev1.dist-info}/METADATA +1 -1
- {prefect_client-3.3.1.dist-info → prefect_client-3.3.2.dev1.dist-info}/RECORD +10 -10
- {prefect_client-3.3.1.dist-info → prefect_client-3.3.2.dev1.dist-info}/WHEEL +0 -0
- {prefect_client-3.3.1.dist-info → prefect_client-3.3.2.dev1.dist-info}/licenses/LICENSE +0 -0
prefect/_build_info.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by versioningit
|
2
|
-
__version__ = "3.3.
|
3
|
-
__build_date__ = "2025-04-
|
4
|
-
__git_commit__ = "
|
2
|
+
__version__ = "3.3.2.dev1"
|
3
|
+
__build_date__ = "2025-04-02 08:08:14.621204+00:00"
|
4
|
+
__git_commit__ = "e4e383ba03ce530c04ec69c514bca125af7a22e5"
|
5
5
|
__dirty__ = False
|
@@ -64,7 +64,7 @@ class PrefectBaseModel(BaseModel):
|
|
64
64
|
|
65
65
|
def __rich_repr__(self) -> RichReprResult:
|
66
66
|
# Display all of the fields in the model if they differ from the default value
|
67
|
-
for name, field in self.model_fields.items():
|
67
|
+
for name, field in type(self).model_fields.items():
|
68
68
|
value = getattr(self, name)
|
69
69
|
|
70
70
|
# Simplify the display of some common fields
|
@@ -90,7 +90,9 @@ class PrefectBaseModel(BaseModel):
|
|
90
90
|
"""
|
91
91
|
return self.model_copy(
|
92
92
|
update={
|
93
|
-
field: self
|
93
|
+
field: type(self)
|
94
|
+
.model_fields[field]
|
95
|
+
.get_default(call_default_factory=True)
|
94
96
|
for field in self._reset_fields
|
95
97
|
}
|
96
98
|
)
|
prefect/blocks/core.py
CHANGED
@@ -414,7 +414,7 @@ class State(ObjectBaseModel, Generic[R]):
|
|
414
414
|
database again. The 'timestamp' is reset using the default factory.
|
415
415
|
"""
|
416
416
|
update = {
|
417
|
-
"timestamp": self.model_fields["timestamp"].get_default(),
|
417
|
+
"timestamp": type(self).model_fields["timestamp"].get_default(),
|
418
418
|
**(update or {}),
|
419
419
|
}
|
420
420
|
return super().model_copy(update=update, deep=deep)
|
prefect/events/filters.py
CHANGED
@@ -45,7 +45,7 @@ class EventDataFilter(PrefectBaseModel, extra="forbid"): # type: ignore[call-ar
|
|
45
45
|
def get_filters(self) -> list["EventDataFilter"]:
|
46
46
|
filters: list["EventDataFilter"] = [
|
47
47
|
filter
|
48
|
-
for filter in [getattr(self, name) for name in self.model_fields]
|
48
|
+
for filter in [getattr(self, name) for name in type(self).model_fields]
|
49
49
|
if isinstance(filter, EventDataFilter)
|
50
50
|
]
|
51
51
|
return filters
|
prefect/settings/base.py
CHANGED
@@ -101,7 +101,7 @@ class PrefectBaseSettings(BaseSettings):
|
|
101
101
|
context={"include_secrets": include_secrets},
|
102
102
|
)
|
103
103
|
env_variables: dict[str, str] = {}
|
104
|
-
for key in self.model_fields.keys():
|
104
|
+
for key in type(self).model_fields.keys():
|
105
105
|
if isinstance(child_settings := getattr(self, key), PrefectBaseSettings):
|
106
106
|
child_env = child_settings.to_environment_variables(
|
107
107
|
exclude_unset=exclude_unset,
|
@@ -110,7 +110,7 @@ class PrefectBaseSettings(BaseSettings):
|
|
110
110
|
)
|
111
111
|
env_variables.update(child_env)
|
112
112
|
elif (value := env.get(key)) is not None:
|
113
|
-
validation_alias = self.model_fields[key].validation_alias
|
113
|
+
validation_alias = type(self).model_fields[key].validation_alias
|
114
114
|
if include_aliases and validation_alias is not None:
|
115
115
|
if isinstance(validation_alias, AliasChoices):
|
116
116
|
for alias in validation_alias.choices:
|
@@ -136,7 +136,7 @@ class PrefectBaseSettings(BaseSettings):
|
|
136
136
|
) -> Any:
|
137
137
|
jsonable_self = handler(self)
|
138
138
|
# iterate over fields to ensure child models that have been updated are also included
|
139
|
-
for key in self.model_fields.keys():
|
139
|
+
for key in type(self).model_fields.keys():
|
140
140
|
if info.exclude and key in info.exclude:
|
141
141
|
continue
|
142
142
|
if info.include and key not in info.include:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
prefect/.prefectignore,sha256=awSprvKT0vI8a64mEOLrMxhxqcO-b0ERQeYpA2rNKVQ,390
|
2
2
|
prefect/__init__.py,sha256=iCdcC5ZmeewikCdnPEP6YBAjPNV5dvfxpYCTpw30Hkw,3685
|
3
3
|
prefect/__main__.py,sha256=WFjw3kaYJY6pOTA7WDOgqjsz8zUEUZHCcj3P5wyVa-g,66
|
4
|
-
prefect/_build_info.py,sha256=
|
4
|
+
prefect/_build_info.py,sha256=AopRsWpwT27ggqv0_AkJac0VfMct6el6FqihpyiH5zY,185
|
5
5
|
prefect/_result_records.py,sha256=S6QmsODkehGVSzbMm6ig022PYbI6gNKz671p_8kBYx4,7789
|
6
6
|
prefect/_waiters.py,sha256=Ia2ITaXdHzevtyWIgJoOg95lrEXQqNEOquHvw3T33UQ,9026
|
7
7
|
prefect/agent.py,sha256=dPvG1jDGD5HSH7aM2utwtk6RaJ9qg13XjkA0lAIgQmY,287
|
@@ -61,7 +61,7 @@ prefect/_internal/pydantic/v1_schema.py,sha256=wSyQr3LUbIh0R9LsZ6ItmLnQeAS8dxVMN
|
|
61
61
|
prefect/_internal/pydantic/v2_schema.py,sha256=lh-dnIoZigHJ6e1K89BVy0zDw3R0vQV9ih3ZC7s7i-Q,3223
|
62
62
|
prefect/_internal/pydantic/v2_validated_func.py,sha256=Ld8OtPFF7Ci-gHHmKhSMizBxzuIBOQ6kuIFNRh0vRVY,3731
|
63
63
|
prefect/_internal/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
64
|
-
prefect/_internal/schemas/bases.py,sha256=
|
64
|
+
prefect/_internal/schemas/bases.py,sha256=JqcZazL5Cp2hZ8Hssu8R2SVXRxHfbdRbTqmvwDYSzyk,4291
|
65
65
|
prefect/_internal/schemas/fields.py,sha256=m4LrFNz8rA9uBhMk9VyQT6FIXmV_EVAW92hdXeSvHbY,837
|
66
66
|
prefect/_internal/schemas/serializers.py,sha256=G_RGHfObjisUiRvd29p-zc6W4bwt5rE1OdR6TXNrRhQ,825
|
67
67
|
prefect/_internal/schemas/validators.py,sha256=ty9hpmfiNEWpENgeBGrgs94j192L8SpLJ0bhFHeXV_8,19733
|
@@ -69,7 +69,7 @@ prefect/_vendor/croniter/__init__.py,sha256=NUFzdbyPcTQhIOFtzmFM0nbClAvBbKh2mlnT
|
|
69
69
|
prefect/_vendor/croniter/croniter.py,sha256=eJ2HzStNAYV-vNiLOgDXl4sYWWHOsSA0dgwbkQoguhY,53009
|
70
70
|
prefect/blocks/__init__.py,sha256=D0hB72qMfgqnBB2EMZRxUxlX9yLfkab5zDChOwJZmkY,220
|
71
71
|
prefect/blocks/abstract.py,sha256=mpOAWopSR_RrzdxeurBTXVSKisP8ne-k8LYos-tp7go,17021
|
72
|
-
prefect/blocks/core.py,sha256=
|
72
|
+
prefect/blocks/core.py,sha256=LDC6Q2Bx88xfI7jRSx4Xlqevhf7KNw_uv_CAh2ZWim0,62192
|
73
73
|
prefect/blocks/fields.py,sha256=1m507VVmkpOnMF_7N-qboRjtw4_ceIuDneX3jZ3Jm54,63
|
74
74
|
prefect/blocks/notifications.py,sha256=UpNNxc4Bwx0nSlDj-vZQOv2XyUCUB2PaO4uBPO1Y6XM,34162
|
75
75
|
prefect/blocks/redis.py,sha256=lt_f1SIcS5OVvthCY6KRWiy5DyUZNRlHqkKhKF25P8c,5770
|
@@ -112,7 +112,7 @@ prefect/client/orchestration/_work_pools/client.py,sha256=s1DfUQQBgB2sLiVVPhLNTl
|
|
112
112
|
prefect/client/schemas/__init__.py,sha256=InZcDzdeWA2oaV0TlyvoMcyLcbi_aaqU1U9D6Gx-eoU,2747
|
113
113
|
prefect/client/schemas/actions.py,sha256=I8LGTyDBrV4eXI_VSq8nQz5jUuOUAn1A0Q5JsPgCa2A,33032
|
114
114
|
prefect/client/schemas/filters.py,sha256=zaiDkalrIpKjd38V4aP1GHlqD24KTPCZiKtPyX69ZWE,36607
|
115
|
-
prefect/client/schemas/objects.py,sha256=
|
115
|
+
prefect/client/schemas/objects.py,sha256=VIewi8krUQpGemZVwcbuqgOG-U7LUfFoWLa0lUaL1QE,58514
|
116
116
|
prefect/client/schemas/responses.py,sha256=iTXTiUhdRL7PxNyJXMZ4ngT7C8SepT_z7g_pnUnVlzo,15629
|
117
117
|
prefect/client/schemas/schedules.py,sha256=sxLFk0SmFY7X1Y9R9HyGDqOS3U5NINBWTciUU7vTTic,14836
|
118
118
|
prefect/client/schemas/sorting.py,sha256=L-2Mx-igZPtsUoRUguTcG3nIEstMEMPD97NwPM2Ox5s,2579
|
@@ -147,7 +147,7 @@ prefect/docker/docker_image.py,sha256=bR_pEq5-FDxlwTj8CP_7nwZ_MiGK6KxIi8v7DRjy1K
|
|
147
147
|
prefect/events/__init__.py,sha256=GtKl2bE--pJduTxelH2xy7SadlLJmmis8WR1EYixhuA,2094
|
148
148
|
prefect/events/actions.py,sha256=A7jS8bo4zWGnrt3QfSoQs0uYC1xfKXio3IfU0XtTb5s,9129
|
149
149
|
prefect/events/clients.py,sha256=XA33NpeRdgVglt7J47uFdpASa1bCvcKWyxsxQt3vEPQ,27290
|
150
|
-
prefect/events/filters.py,sha256=
|
150
|
+
prefect/events/filters.py,sha256=2hVfzc3Rdgy0mBHDutWxT__LJY0zpVM8greWX3y6kjM,8233
|
151
151
|
prefect/events/related.py,sha256=nthW3toCPacIL1xkWeV_BG30X6hF4vF2rJHAgqtDXXU,6580
|
152
152
|
prefect/events/utilities.py,sha256=ww34bTMENCNwcp6RhhgzG0KgXOvKGe0MKmBdSJ8NpZY,3043
|
153
153
|
prefect/events/worker.py,sha256=HjbibR0_J1W1nnNMZDFTXAbB0cl_cFGaFI87DvNGcnI,4557
|
@@ -233,7 +233,7 @@ prefect/server/api/ui/flows.py,sha256=W4kwqOCJ_2vROmMCmemH2Mq3uWbWZyu5q5uTZPBdYw
|
|
233
233
|
prefect/server/api/ui/schemas.py,sha256=NVWA1RFnHW-MMU1s6WbNmp_S5mhbrN-_P41I4O2XtMg,2085
|
234
234
|
prefect/server/api/ui/task_runs.py,sha256=dKVNe4EjmMrXH-VtsRoFTKJEBbl35upGHAW2C_AhKKM,6664
|
235
235
|
prefect/settings/__init__.py,sha256=3jDLzExmq9HsRWo1kTSE16BO_3B3JlVsk5pR0s4PWEQ,2136
|
236
|
-
prefect/settings/base.py,sha256=
|
236
|
+
prefect/settings/base.py,sha256=tRpTdJUjntatn9H-9Ij2kzEfFbd-a3ZEeB3CrCe9Meo,9685
|
237
237
|
prefect/settings/constants.py,sha256=5NjVLG1Km9J9I-a6wrq-qmi_dTkPdwEk3IrY9bSxWvw,281
|
238
238
|
prefect/settings/context.py,sha256=yKxnaDJHX8e2jmAVtw1RF9o7X4V3AOcz61sVeQyPX2c,2195
|
239
239
|
prefect/settings/legacy.py,sha256=KG00GwaURl1zbwfCKAjwNRdJjB2UdTyo80gYF7U60jk,5693
|
@@ -316,7 +316,7 @@ prefect/workers/cloud.py,sha256=dPvG1jDGD5HSH7aM2utwtk6RaJ9qg13XjkA0lAIgQmY,287
|
|
316
316
|
prefect/workers/process.py,sha256=uxOwcqA2Ps-V-W6WeSdKCQMINrCxBEVx1K1Un8pb7vs,8973
|
317
317
|
prefect/workers/server.py,sha256=2pmVeJZiVbEK02SO6BEZaBIvHMsn6G8LzjW8BXyiTtk,1952
|
318
318
|
prefect/workers/utilities.py,sha256=VfPfAlGtTuDj0-Kb8WlMgAuOfgXCdrGAnKMapPSBrwc,2483
|
319
|
-
prefect_client-3.3.
|
320
|
-
prefect_client-3.3.
|
321
|
-
prefect_client-3.3.
|
322
|
-
prefect_client-3.3.
|
319
|
+
prefect_client-3.3.2.dev1.dist-info/METADATA,sha256=h0kpaz04uScDrt6tLhcgehDTzHIXXxj7xehi-n4qmMo,7456
|
320
|
+
prefect_client-3.3.2.dev1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
321
|
+
prefect_client-3.3.2.dev1.dist-info/licenses/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
|
322
|
+
prefect_client-3.3.2.dev1.dist-info/RECORD,,
|
File without changes
|
File without changes
|