Skip to content

Commit b1e2ac6

Browse files
committed
ignore pylint error that I'm not sure how to fix right now
1 parent 5a11ac6 commit b1e2ac6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nucleus/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ def preprocess_payload(batch):
416416
(ITEMS_KEY, (None, json.dumps(batch), "application/json"))
417417
]
418418
for item in batch:
419-
image = open(item.get(IMAGE_URL_KEY), "rb")
419+
image = open( # pylint: disable=R1732
420+
item.get(IMAGE_URL_KEY), "rb" # pylint: disable=R1732
421+
) # pylint: disable=R1732
420422
img_name = os.path.basename(image.name)
421423
img_type = (
422424
f"image/{os.path.splitext(image.name)[1].strip('.')}"

0 commit comments

Comments
 (0)