apify 2.4.0b4__py3-none-any.whl → 2.4.0b6__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 apify might be problematic. Click here for more details.

apify/_actor.py CHANGED
@@ -141,7 +141,7 @@ class _ActorType:
141
141
  await self.exit()
142
142
 
143
143
  def __repr__(self) -> str:
144
- if self is cast(Proxy, Actor).__wrapped__:
144
+ if self is cast('Proxy', Actor).__wrapped__:
145
145
  return '<apify.Actor>'
146
146
 
147
147
  return super().__repr__()
@@ -222,7 +222,7 @@ class _ActorType:
222
222
  self.log.warning('Repeated Actor initialization detected - this is non-standard usage, proceed with care')
223
223
 
224
224
  # Make sure that the currently initialized instance is also available through the global `Actor` proxy
225
- cast(Proxy, Actor).__wrapped__ = self
225
+ cast('Proxy', Actor).__wrapped__ = self
226
226
 
227
227
  self._is_exiting = False
228
228
  self._was_final_persist_state_emitted = False
@@ -674,7 +674,7 @@ class _ActorType:
674
674
  elif isinstance(field.validation_alias, str):
675
675
  aliases = [field.validation_alias]
676
676
  elif isinstance(field.validation_alias, AliasChoices):
677
- aliases = cast(list[str], field.validation_alias.choices)
677
+ aliases = cast('list[str]', field.validation_alias.choices)
678
678
  else:
679
679
  aliases = [field_name]
680
680
 
@@ -1158,5 +1158,5 @@ class _ActorType:
1158
1158
  return True
1159
1159
 
1160
1160
 
1161
- Actor = cast(_ActorType, Proxy(_ActorType))
1161
+ Actor = cast('_ActorType', Proxy(_ActorType))
1162
1162
  """The entry point of the SDK, through which all the Actor operations should be done."""
apify/scrapy/requests.py CHANGED
@@ -93,7 +93,7 @@ def to_scrapy_request(apify_request: ApifyRequest, spider: Spider) -> ScrapyRequ
93
93
  Returns:
94
94
  The converted Scrapy request.
95
95
  """
96
- if not isinstance(cast(Any, apify_request), ApifyRequest):
96
+ if not isinstance(cast('Any', apify_request), ApifyRequest):
97
97
  raise TypeError('apify_request must be a crawlee.ScrapyRequest instance')
98
98
 
99
99
  logger.debug(f'to_scrapy_request was called (apify_request={apify_request})...')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apify
3
- Version: 2.4.0b4
3
+ Version: 2.4.0b6
4
4
  Summary: Apify SDK for Python
5
5
  Project-URL: Homepage, https://docs.apify.com/sdk/python/
6
6
  Project-URL: Apify homepage, https://apify.com
@@ -1,5 +1,5 @@
1
1
  apify/__init__.py,sha256=HpgKg2FZWJuSPfDygzJ62psylhw4NN4tKFnoYUIhcd4,838
2
- apify/_actor.py,sha256=PQqFDpAqSbh_aP3EjD8yLGYOmLZMo1qLzqrbVT2KjWE,49697
2
+ apify/_actor.py,sha256=Avo0KdWzeuZFiapNyQWwAfWWeUObrdOKbD97wCc07fc,49705
3
3
  apify/_charging.py,sha256=m7hJIQde4M7vS4g_4hsNRP5xHNXjYQ8MyqOEGeNb7VY,12267
4
4
  apify/_configuration.py,sha256=yidcWHsu-IJ2mmLmXStKq_HHcdfQxZq7koYjlZfRnQ8,11128
5
5
  apify/_consts.py,sha256=_Xq4hOfOA1iZ3n1P967YWdyncKivpbX6RTlp_qanUoE,330
@@ -24,7 +24,7 @@ apify/scrapy/_actor_runner.py,sha256=rXWSnlQWGskDUH8PtLCv5SkOIx4AiVa4QbCYeCett5c
24
24
  apify/scrapy/_async_thread.py,sha256=AfeH9ZkSRZXxL11wzwrroDNsTzq4tAvURlinUZBtYMA,4753
25
25
  apify/scrapy/_logging_config.py,sha256=hFq90fNtZyjjJA7w2k-mtuEC8xCFiBMTalbwPDcaig4,2022
26
26
  apify/scrapy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
- apify/scrapy/requests.py,sha256=tOiFtG0kyzbBwtmaOisLAcpJENR1eDtpPR1nRH7JJGg,6551
27
+ apify/scrapy/requests.py,sha256=vZEU1IwNotCkqZ-b-LfM15iAyr1LnZ_fF8oWyMFVVFI,6553
28
28
  apify/scrapy/scheduler.py,sha256=-r1wZjMmeRDPxZKGHO-EYDYpGdDgSPAdNgMFViqUK8E,6019
29
29
  apify/scrapy/utils.py,sha256=5cka33PWc_at14yjhnLkCvY4h-ySUgVVhhDLxTy39ZI,1965
30
30
  apify/scrapy/middlewares/__init__.py,sha256=tfW-d3WFWLeNEjL8fTmon6NwgD-OXx1Bw2fBdU-wPy4,114
@@ -36,7 +36,7 @@ apify/scrapy/pipelines/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
36
36
  apify/storages/__init__.py,sha256=FW-z6ubuPnHGM-Wp15T8mR5q6lnpDGrCW-IkgZd5L30,177
37
37
  apify/storages/_request_list.py,sha256=7WpcdWvT3QxEBthynBpTVCSNDLXq6UbpQQmfUVyJ1jE,5849
38
38
  apify/storages/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
- apify-2.4.0b4.dist-info/METADATA,sha256=euAPCSZDsD14y2c1WnbKu9qMyXYHLQkeHZJ2Pzpnxvk,21558
40
- apify-2.4.0b4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
- apify-2.4.0b4.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
42
- apify-2.4.0b4.dist-info/RECORD,,
39
+ apify-2.4.0b6.dist-info/METADATA,sha256=WG5egGrX4ImAVFO265if3fAAL0KllSnyfay3pcdwpiY,21558
40
+ apify-2.4.0b6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
+ apify-2.4.0b6.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
42
+ apify-2.4.0b6.dist-info/RECORD,,