prefect-client 2.20.8__py3-none-any.whl → 2.20.9__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/events/clients.py CHANGED
@@ -473,11 +473,11 @@ class PrefectEventSubscriber:
473
473
  f"Reason: {e.args[0]}"
474
474
  )
475
475
  except ConnectionClosedError as e:
476
- raise Exception(
477
- "Unable to authenticate to the event stream. Please ensure the "
478
- "provided api_key you are using is valid for this environment. "
479
- f"Reason: {e.reason}"
480
- ) from e
476
+ reason = getattr(e.rcvd, "reason", None)
477
+ msg = "Unable to authenticate to the event stream. Please ensure the "
478
+ msg += "provided api_key you are using is valid for this environment. "
479
+ msg += f"Reason: {reason}" if reason else ""
480
+ raise Exception(msg) from e
481
481
 
482
482
  from prefect.events.filters import EventOccurredFilter
483
483
 
prefect/flows.py CHANGED
@@ -1148,6 +1148,15 @@ class Flow(Generic[P, R]):
1148
1148
  ) -> T:
1149
1149
  ...
1150
1150
 
1151
+ @overload
1152
+ def __call__(
1153
+ self: "Flow[P, Coroutine[Any, Any, T]]",
1154
+ *args: P.args,
1155
+ return_state: Literal[True],
1156
+ **kwargs: P.kwargs,
1157
+ ) -> Awaitable[State[T]]:
1158
+ ...
1159
+
1151
1160
  @overload
1152
1161
  def __call__(
1153
1162
  self: "Flow[P, T]",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prefect-client
3
- Version: 2.20.8
3
+ Version: 2.20.9
4
4
  Summary: Workflow orchestration and management.
5
5
  Home-page: https://www.prefect.io
6
6
  Author: Prefect Technologies, Inc.
@@ -9,7 +9,7 @@ prefect/engine.py,sha256=i68gM-ZZ2x9D4aIwaLmApWeHqpMb2U2QWNJjX3aPmZM,92887
9
9
  prefect/exceptions.py,sha256=ElqC81_w6XbTaxLYANLMIPK8Fz46NmJZCRKL4NZ-JIg,10907
10
10
  prefect/filesystems.py,sha256=XniPSdBAqywj43X7GyfuWJQIbz07QJ5Y3cVNLhIF3lQ,35260
11
11
  prefect/flow_runs.py,sha256=mFHLavZk1yZ62H3UazuNDBZWAF7AqKttA4rMcHgsVSw,3119
12
- prefect/flows.py,sha256=6ZPoUsKRwzLfAt-QFgfteKHdmhs-ybp6Mf_7ryckTGc,84777
12
+ prefect/flows.py,sha256=ApTY03QIH5C9i4p50vaYVPW1K1YoVqIi9n6JomfgX34,84989
13
13
  prefect/futures.py,sha256=RaWfYIXtH7RsWxQ5QWTTlAzwtVV8XWpXaZT_hLq35vQ,12590
14
14
  prefect/manifests.py,sha256=sTM7j8Us5d49zaydYKWsKb7zJ96v1ChkLkLeR0GFYD8,683
15
15
  prefect/new_flow_engine.py,sha256=A1adTWTBAwPCn6ay003Jsoc2SdYgHV4AcJo1bmpa_7Y,16039
@@ -199,7 +199,7 @@ prefect/deprecated/packaging/orion.py,sha256=3vRudge_XI4JX3aVxtK2QQvfHQ836C2maNJ
199
199
  prefect/deprecated/packaging/serializers.py,sha256=kkFNR8_w2C6zI5A1w_-lfbLVFlhn3SJ28i3T3WKBO94,5165
200
200
  prefect/events/__init__.py,sha256=GtKl2bE--pJduTxelH2xy7SadlLJmmis8WR1EYixhuA,2094
201
201
  prefect/events/actions.py,sha256=X72oHY4f_tstup7_Jv8qjSAwhQo3sHcJFaGoRhisVKA,9149
202
- prefect/events/clients.py,sha256=cQAEqBebQ1XnmDlZ9tzyrDZW33Rrci3S9xJgo9EznVs,20401
202
+ prefect/events/clients.py,sha256=TrDIg_-sl2XrFWHpWkPqAMTFWp-WS9Ym-0Tqs_KjP6Y,20468
203
203
  prefect/events/filters.py,sha256=Y2gH6EyQTKj2Tj9Nudbjg-nUqrPaIbzAQ2zqKsPCiHc,8245
204
204
  prefect/events/instrument.py,sha256=IhPBjs8n5xaAC_sPo_GfgppNLYWxIoX0l66WlkzQhlw,3715
205
205
  prefect/events/related.py,sha256=WTygrgtmxXWVlLFey5wJqO45BjHcUMeZkUbXGGmBWfE,6831
@@ -286,8 +286,8 @@ prefect/workers/block.py,sha256=aYY__uq3v1eq1kkbVukxyhQNbkknaKYo6-_3tcrfKKA,8067
286
286
  prefect/workers/process.py,sha256=pPtCdA7fKQ4OsvoitT-cayZeh5HgLX4xBUYlb2Zad-Q,9475
287
287
  prefect/workers/server.py,sha256=WVZJxR8nTMzK0ov0BD0xw5OyQpT26AxlXbsGQ1OrxeQ,1551
288
288
  prefect/workers/utilities.py,sha256=VfPfAlGtTuDj0-Kb8WlMgAuOfgXCdrGAnKMapPSBrwc,2483
289
- prefect_client-2.20.8.dist-info/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
290
- prefect_client-2.20.8.dist-info/METADATA,sha256=N2zG-uLMm8bpAUI-KGSTVlDVZvVgLzE4BhpgSUQd-mQ,7391
291
- prefect_client-2.20.8.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
292
- prefect_client-2.20.8.dist-info/top_level.txt,sha256=MJZYJgFdbRc2woQCeB4vM6T33tr01TmkEhRcns6H_H4,8
293
- prefect_client-2.20.8.dist-info/RECORD,,
289
+ prefect_client-2.20.9.dist-info/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
290
+ prefect_client-2.20.9.dist-info/METADATA,sha256=XB_lbnZBAGQikh8HCxxvu1AJYMsgFVGUIa_E0aOUdaQ,7391
291
+ prefect_client-2.20.9.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
292
+ prefect_client-2.20.9.dist-info/top_level.txt,sha256=MJZYJgFdbRc2woQCeB4vM6T33tr01TmkEhRcns6H_H4,8
293
+ prefect_client-2.20.9.dist-info/RECORD,,