I'm seeing cases where a Fasta object is garbage collected without Fasta.faidx.file being closed, resulting in a ResourceWarning: unclosed file <_io.FileIO name='genome.fa' mode='rb' closefd=True>
This PR fixes the warning in the proper way.
I haven't managed to create a simple test case, but this works in my spaghetti code ;)
I'm seeing cases where a Fasta object is garbage collected without Fasta.faidx.file being closed, resulting in a
ResourceWarning: unclosed file <_io.FileIO name='genome.fa' mode='rb' closefd=True>
This PR fixes the warning in the proper way.
I haven't managed to create a simple test case, but this works in my spaghetti code ;)