Skip to content

Commit 22d1e54

Browse files
Updated formatted string syntax so it will work with Python v3.7 (#1098)
* Updated formatted string syntax so it will work with Python v3.7 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 20608cc commit 22d1e54

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sample-apps/pathology/lib/infers/nuclick.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ def __call__(self, data):
5656
for source_annotation_key, target_data_key in zip(self.source_annotation_keys, self.target_data_keys):
5757
if source_annotation_key in annotations:
5858
points = annotations.get(source_annotation_key)["points"]
59-
print(f"{points=}")
59+
print(f"points={points}")
6060
points = [coords[0:2] for coords in points]
6161
data[target_data_key] = points
6262
elif not self.allow_missing_keys:
63-
raise KeyError(f"{source_annotation_key=} not found in {annotations.keys()=}")
63+
raise KeyError(
64+
f"source_annotation_key={source_annotation_key} not found in annotations.keys()={annotations.keys()}"
65+
)
6466
return data
6567

6668

0 commit comments

Comments
 (0)