iris-pex-embedded-python 3.5.0b3__py3-none-any.whl → 3.5.0b5__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 iris-pex-embedded-python might be problematic. Click here for more details.

iop/_dispatch.py CHANGED
@@ -31,6 +31,9 @@ def dispatch_serializer(message: Any, is_generator: bool = False) -> Any:
31
31
  if message == "" or message is None:
32
32
  return message
33
33
 
34
+ if hasattr(message, '__iter__'):
35
+ raise TypeError("You may have tried to invoke a generator function without using the 'send_generator_request' method. Please use that method to handle generator functions.")
36
+
34
37
  raise TypeError("The message must be an instance of a class that is a subclass of Message or IRISObject %Persistent class.")
35
38
 
36
39
  def dispatch_deserializer(serial: Any) -> Any:
@@ -115,6 +118,10 @@ def get_handler_info(host: Any, method_name: str) -> Tuple[str, str] | None:
115
118
 
116
119
  param: Parameter = next(iter(params.values()))
117
120
  annotation = param.annotation
121
+
122
+ if isinstance(annotation, str):
123
+ # return it as is, assuming it's a fully qualified class name
124
+ return annotation, method_name
118
125
 
119
126
  if annotation == Parameter.empty or not isinstance(annotation, type):
120
127
  return None
@@ -2,7 +2,7 @@
2
2
  Cambridge, Massachusetts, U.S.A. All rights reserved.
3
3
  Confidential property of InterSystems Corporation. */
4
4
 
5
- Class IOP.Generator.Message.Start Extends IOP.Message [ ClassType = persistent, Inheritance = right, ProcedureBlock, System = 4 ]
5
+ Class IOP.Generator.Message.Start Extends IOP.Message [ ClassType = persistent, Inheritance = right, ProcedureBlock ]
6
6
  {
7
7
 
8
8
  Parameter DOMAIN = "Generator";
@@ -2,7 +2,7 @@
2
2
  Cambridge, Massachusetts, U.S.A. All rights reserved.
3
3
  Confidential property of InterSystems Corporation. */
4
4
 
5
- Class IOP.Generator.Message.StartPickle Extends IOP.PickleMessage [ ClassType = persistent, Inheritance = right, ProcedureBlock, System = 4 ]
5
+ Class IOP.Generator.Message.StartPickle Extends IOP.PickleMessage [ ClassType = persistent, Inheritance = right, ProcedureBlock ]
6
6
  {
7
7
 
8
8
  Parameter DOMAIN = "Generator";
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iris_pex_embedded_python
3
- Version: 3.5.0b3
3
+ Version: 3.5.0b5
4
4
  Summary: Iris Interoperability based on Embedded Python
5
5
  Author-email: grongier <guillaume.rongier@intersystems.com>
6
6
  License: MIT License
@@ -39,7 +39,7 @@ iop/_common.py,sha256=W39gb-K7oh93YdxOIIud0TT64Z6dSogVT4Rpda7_IvU,13986
39
39
  iop/_debugpy.py,sha256=67BC1jxZx4MZfj65trYYnSJ_MVKMTv49n3CqqfgVQdk,4725
40
40
  iop/_decorators.py,sha256=LpK0AK4GIzXbPFSIw_x6zzM3FwsHvFjgQUh-MnqtTE8,2322
41
41
  iop/_director.py,sha256=dJ4uLs5JxBS1wc0OtL25HuaDi3Jh8M9JC5Ra366ic1g,11489
42
- iop/_dispatch.py,sha256=Z62grevFrqRobDmB6Sf1VG0HjHMMgAaKfOxNU4QfTjw,4121
42
+ iop/_dispatch.py,sha256=4LOF0v0e492B3NHuhLdPVAMNCDeFfyOhIjWDPC4bmAw,4499
43
43
  iop/_generator_request.py,sha256=I67JOjfsznN9JlS0bg_D05phcfSXqp6GJlCULJPXKvw,1284
44
44
  iop/_inbound_adapter.py,sha256=yG33VfJ2KxSDVxBTQTjFXqdX1fMEic1zxSAOhP5DqTk,1649
45
45
  iop/_iris.py,sha256=cw1mIKchXNlUJXSxwMhXYQr8DntJEO1hSPnLyJab10w,204
@@ -67,8 +67,8 @@ iop/cls/IOP/Duplex/Process.cls,sha256=xbefZ4z84a_IUhavWN6P_gZBzqkdJ5XRTXxro6iDvA
67
67
  iop/cls/IOP/Duplex/Service.cls,sha256=sTMOQUCMBgVitmQkM8bbsrmrRtCdj91VlctJ3I7b8WU,161
68
68
  iop/cls/IOP/Generator/Message/Ack.cls,sha256=gVgrmTF8TrOkdsN6KqCRxWf3VVw5ukHTx58xxd968m8,905
69
69
  iop/cls/IOP/Generator/Message/Poll.cls,sha256=nzZN5s4ffC243D9wRUSeb3dyBGsIqqO4pb9oqP_ahYM,890
70
- iop/cls/IOP/Generator/Message/Start.cls,sha256=BtsS45na_9O0vuhQSUDpxPqHPvcnMfmhY-5BXBgsrqM,389
71
- iop/cls/IOP/Generator/Message/StartPickle.cls,sha256=BVlmYjs7to3xoW1GffxWQwEi1bZnYwg291jrZOFJ3VU,401
70
+ iop/cls/IOP/Generator/Message/Start.cls,sha256=rYaMb6wtF62K_9ixHIdfSzVVCPet74xxSsYNhUSk1rQ,377
71
+ iop/cls/IOP/Generator/Message/StartPickle.cls,sha256=8DmUy_7FcIW8vAZiEmXoxBwomTRfrsVFaPjpO5j1YCo,389
72
72
  iop/cls/IOP/Generator/Message/Stop.cls,sha256=AYiw3UZy8lqbW5xZznWGmuf1f389vY7XxVfrwJIONkI,920
73
73
  iop/cls/IOP/Message/JSONSchema.cls,sha256=SL26n8Z0D81SAGL2NthI10NFdT4Oe1x_GQiaTYPwkoo,3252
74
74
  iop/cls/IOP/PrivateSession/Duplex.cls,sha256=ziTNpRqBVBtR1j0a0HuJz6-90IIWl8G-XpzlOlXaTfQ,7961
@@ -78,9 +78,9 @@ iop/cls/IOP/PrivateSession/Message/Start.cls,sha256=RsJLrhglrONBDGT0RqW2K9MDXa98
78
78
  iop/cls/IOP/PrivateSession/Message/Stop.cls,sha256=7g3gKFUjNg0WXBLuWnj-VnCs5G6hSE09YTzGEp0zbGc,1390
79
79
  iop/cls/IOP/Service/WSGI.cls,sha256=VLNCXEwmHW9dBnE51uGE1nvGX6T4HjhqePT3LVhsjAE,10440
80
80
  iop/wsgi/handlers.py,sha256=NrFLo_YbAh-x_PlWhAiWkQnUUN2Ss9HoEm63dDWCBpQ,2947
81
- iris_pex_embedded_python-3.5.0b3.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
82
- iris_pex_embedded_python-3.5.0b3.dist-info/METADATA,sha256=wDI_ZaSKG_xmNu-IzDvh4Q1p4LTT7dt2v5jy8wMXVdY,4415
83
- iris_pex_embedded_python-3.5.0b3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- iris_pex_embedded_python-3.5.0b3.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
85
- iris_pex_embedded_python-3.5.0b3.dist-info/top_level.txt,sha256=4p0q6hCATmYIVMVi3I8hOUcJE1kwzyBeHygWv_rGvrU,13
86
- iris_pex_embedded_python-3.5.0b3.dist-info/RECORD,,
81
+ iris_pex_embedded_python-3.5.0b5.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
82
+ iris_pex_embedded_python-3.5.0b5.dist-info/METADATA,sha256=uXffLB3sMsSbFJtf9VGzrbZ3r0fSBGaE6lRoR_GO4C4,4415
83
+ iris_pex_embedded_python-3.5.0b5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
+ iris_pex_embedded_python-3.5.0b5.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
85
+ iris_pex_embedded_python-3.5.0b5.dist-info/top_level.txt,sha256=4p0q6hCATmYIVMVi3I8hOUcJE1kwzyBeHygWv_rGvrU,13
86
+ iris_pex_embedded_python-3.5.0b5.dist-info/RECORD,,