Skip to content

Commit fb73d03

Browse files
committed
type
1 parent 08f1138 commit fb73d03

File tree

1 file changed

+3
-2
lines changed
  • packages/simcore-sdk/src/simcore_sdk/node_ports_v2

1 file changed

+3
-2
lines changed

packages/simcore-sdk/src/simcore_sdk/node_ports_v2/port.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ async def get_value(
194194
)
195195

196196
async def _evaluate() -> ItemValue | None:
197+
# NOTE: review types returned by this function !!!
197198
if isinstance(self.value, PortLink):
198199
# this is a link to another node's port
199-
other_port_itemvalue: None | (ItemValue) = (
200+
other_port_itemvalue: ItemValue | None = (
200201
await port_utils.get_value_link_from_port_link(
201202
self.value,
202203
# pylint: disable=protected-access
@@ -209,7 +210,7 @@ async def _evaluate() -> ItemValue | None:
209210

210211
if isinstance(self.value, FileLink):
211212
# let's get the download/upload link from storage
212-
url_itemvalue: None | (AnyUrl) = (
213+
url_itemvalue: AnyUrl | None = (
213214
await port_utils.get_download_link_from_storage(
214215
# pylint: disable=protected-access
215216
user_id=self._node_ports.user_id,

0 commit comments

Comments
 (0)