Closed
Description
Current problem
file = open('foo') # consider-using-with
file = Path('foo').open() # no error
path = Path('foo')
file = path.open() # no error
Desired solution
consider-using-with
should trigger on any Path.open
call too.
I can try to implement this if it's not too hard.
Additional context
No response