Open danny0838 opened 2 years ago
The following case gets a SIM115 error, while it shouldn't.
file = '/path/to/file' with (open(file, 'rb') if file is not None else nullcontext(sys.stdin)) as fh: text = fh.read()
The following case gets a SIM115 error, while it shouldn't.