Skip to content

Commit 8e17c79

Browse files
authored
Merge pull request #111 from ImageMarkup/typing
Remove some unnecessary type checking workarounds
2 parents a88b22e + 53aa85a commit 8e17c79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

isic_challenge_scoring/classification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def from_file(
216216
'r'
217217
) as prediction_file_stream:
218218
return cls.from_stream(
219-
cast(TextIO, truth_file_stream),
220-
cast(TextIO, prediction_file_stream),
219+
truth_file_stream,
220+
prediction_file_stream,
221221
validation_metric,
222222
)

isic_challenge_scoring/unzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def extract_zip(zip_path: pathlib.Path, output_path: pathlib.Path, flatten: bool
2929
with zf.open(member_info) as input_stream, member_output_path.open(
3030
'wb'
3131
) as output_stream:
32-
shutil.copyfileobj(input_stream, output_stream) # type: ignore
32+
shutil.copyfileobj(input_stream, output_stream)
3333
else:
3434
zf.extractall(output_path)
3535
except zipfile.BadZipfile as e:

0 commit comments

Comments
 (0)