Skip to content

Commit 66fd320

Browse files
committed
suppress consider-using-with warning
1 parent f60860d commit 66fd320

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rectools/models/nn/transformers

rectools/models/nn/transformers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def _model_from_checkpoint(
628628
temp_file = None
629629
actual_ckpt_path = ckpt_path
630630
if actual_ckpt_path is None:
631-
temp_file = NamedTemporaryFile()
631+
temp_file = NamedTemporaryFile() # pylint: disable=consider-using-with
632632
actual_ckpt_path = temp_file.name
633633
torch.save(checkpoint, actual_ckpt_path)
634634

0 commit comments

Comments
 (0)