iris-pex-embedded-python 3.5.0b4__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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iris_pex_embedded_python
3
- Version: 3.5.0b4
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
@@ -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.0b4.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
82
- iris_pex_embedded_python-3.5.0b4.dist-info/METADATA,sha256=WWYcgcEhhzbAbj3FKI4faBbTqisGyMXZepabAygnNNo,4415
83
- iris_pex_embedded_python-3.5.0b4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- iris_pex_embedded_python-3.5.0b4.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
85
- iris_pex_embedded_python-3.5.0b4.dist-info/top_level.txt,sha256=4p0q6hCATmYIVMVi3I8hOUcJE1kwzyBeHygWv_rGvrU,13
86
- iris_pex_embedded_python-3.5.0b4.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,,