omnata-plugin-runtime 0.5.4a125__tar.gz → 0.5.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.5.4a125
3
+ Version: 0.5.5
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.5.4-a125"
3
+ version = "0.5.5"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -112,7 +112,8 @@ class OutboundSyncAction(SubscriptableBaseModel, ABC):
112
112
  super().__init__(**data)
113
113
 
114
114
  @model_serializer(mode='wrap')
115
- def ser_model(self,handler,info:SerializationInfo) -> Dict[str, Any]:
115
+ # no return type hint, see https://github.com/fastapi/fastapi/discussions/10661#discussioncomment-7631104
116
+ def ser_model(self,handler,info:SerializationInfo):
116
117
  serialized:Dict[str,Any] = handler(self)
117
118
  if not self.custom_action and (info.exclude_none is None or info.exclude_none == False):
118
119
  return {k:v for k,v in serialized.items() if k not in [
@@ -254,7 +255,8 @@ class OutboundSyncStrategy(SubscriptableBaseModel, ABC):
254
255
  super().__init__(**data)
255
256
 
256
257
  @model_serializer(mode='wrap')
257
- def ser_model(self,handler,info:SerializationInfo) -> Dict[str, Any]:
258
+ # no return type hint, see https://github.com/fastapi/fastapi/discussions/10661#discussioncomment-7631104
259
+ def ser_model(self,handler,info:SerializationInfo):
258
260
  serialized:Dict[str,Any] = handler(self)
259
261
  if not self.custom_strategy and (info.exclude_none is None or info.exclude_none == False):
260
262
  return {k:v for k,v in serialized.items() if k not in [